-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Minor cleanup of docs and trait defs. (#112)
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]>
- Loading branch information
1 parent
d34ad01
commit c966d56
Showing
4 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
use super::hash::*; | ||
use super::object::*; | ||
use super::*; | ||
use std::fs::File; | ||
use tokio::fs::File as AsyncFile; | ||
|