Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Minor cleanup of docs and trait defs. #112

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

alilleybrinker
Copy link
Member

This commit marks the contents of the HashAlgorithm and ObjectType
traits as hidden, because their internals are only relevant to the
internals of GitOid. The trait is sealed, so it can't be implemented
by other types, and the types that do implement it aren't able to be
constructed (no public constructor + private field).

This also moves all exported items to the top level, so there are no
public submodules. The API of the crate is quite small, so it's nice
for users to have all the docs accessible from one place.

Signed-off-by: Andrew Lilley Brinker [email protected]

Description

Related Issue

Motivation and Context

How Has This Been Tested?

This commit marks the contents of the HashAlgorithm and ObjectType
traits as hidden, because their internals are _only_ relevant to the
internals of `GitOid`. The trait is sealed, so it can't be implemented
by other types, and the types that _do_ implement it aren't able to be
constructed (no public constructor + private field).

This also moves all exported items to the top level, so there are no
public submodules. The API of the crate is quite small, so it's nice
for users to have all the docs accessible from one place.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
@alilleybrinker alilleybrinker force-pushed the alilleybrinker/minor-fixups branch from 09ca365 to 68aeff8 Compare February 19, 2024 23:27
@alilleybrinker alilleybrinker merged commit c966d56 into main Feb 19, 2024
3 checks passed
@alilleybrinker alilleybrinker deleted the alilleybrinker/minor-fixups branch February 19, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant