History

Remove unnecessary pub(crate) exports

Fix build for windows Fix build for windows Fix build for windows

Alik Aslanyan committed 5 years ago

Commit 3d2456e1 parent a799ca823 files · +43 −45Browse files

Showing the changes to git-commitgraph/src (1 of 23 files). Show all

Unified · Split

git-commitgraph/src/graph/access.rs+4−4
@@ -52,7 +52,7 @@ impl Graph { · 51 unmodified lines
5252
5353 /// Access fundamentals
5454 impl Graph {
55− pub(crate) fn lookup_by_id(&self, id: &git_hash::oid) -> Option<LookupByIdResult<'_>> {
55+ fn lookup_by_id(&self, id: &git_hash::oid) -> Option<LookupByIdResult<'_>> {
5656 let mut current_file_start = 0;
5757 for file in &self.files {
5858 if let Some(lex_pos) = file.lookup(id) {
@@ -67,7 +67,7 @@ impl Graph { · 8 unmodified lines
6767 None
6868 }
6969
70− pub(crate) fn lookup_by_pos(&self, pos: graph::Position) -> LookupByPositionResult<'_> {
70+ fn lookup_by_pos(&self, pos: graph::Position) -> LookupByPositionResult<'_> {
7171 let mut remaining = pos.0;
7272 for (file_index, file) in self.files.iter().enumerate() {
7373 match remaining.checked_sub(file.num_commits()) {
@@ -86,14 +86,14 @@ impl Graph { · 12 unmodified lines
8686 }
8787
8888 #[derive(Clone)]
89−pub(crate) struct LookupByIdResult<'a> {
89+struct LookupByIdResult<'a> {
9090 pub file: &'a File,
9191 pub graph_pos: graph::Position,
9292 pub file_pos: file::Position,
9393 }
9494
9595 #[derive(Clone)]
96−pub(crate) struct LookupByPositionResult<'a> {
96+struct LookupByPositionResult<'a> {
9797 pub file: &'a File,
9898 pub file_index: usize,
9999 pub pos: file::Position,