Fix build for windows Fix build for windows Fix build for windows
Showing the changes to git-commitgraph/src (1 of 23 files). Show all
Unified · Split
| @@ -52,7 +52,7 @@ impl Graph { · 51 unmodified lines | ||
| 52 | 52 | |
| 53 | 53 | /// Access fundamentals |
| 54 | 54 | 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<'_>> { | |
| 56 | 56 | let mut current_file_start = 0; |
| 57 | 57 | for file in &self.files { |
| 58 | 58 | if let Some(lex_pos) = file.lookup(id) { |
| @@ -67,7 +67,7 @@ impl Graph { · 8 unmodified lines | ||
| 67 | 67 | None |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | − pub(crate) fn lookup_by_pos(&self, pos: graph::Position) -> LookupByPositionResult<'_> { | |
| 70 | + fn lookup_by_pos(&self, pos: graph::Position) -> LookupByPositionResult<'_> { | |
| 71 | 71 | let mut remaining = pos.0; |
| 72 | 72 | for (file_index, file) in self.files.iter().enumerate() { |
| 73 | 73 | match remaining.checked_sub(file.num_commits()) { |
| @@ -86,14 +86,14 @@ impl Graph { · 12 unmodified lines | ||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | #[derive(Clone)] |
| 89 | −pub(crate) struct LookupByIdResult<'a> { | |
| 89 | +struct LookupByIdResult<'a> { | |
| 90 | 90 | pub file: &'a File, |
| 91 | 91 | pub graph_pos: graph::Position, |
| 92 | 92 | pub file_pos: file::Position, |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | #[derive(Clone)] |
| 96 | −pub(crate) struct LookupByPositionResult<'a> { | |
| 96 | +struct LookupByPositionResult<'a> { | |
| 97 | 97 | pub file: &'a File, |
| 98 | 98 | pub file_index: usize, |
| 99 | 99 | pub pos: file::Position, |