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
52 52
53/// Access fundamentals53/// Access fundamentals
54impl Graph {54impl 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 let mut current_file_start = 0;56 let mut current_file_start = 0;
57 for file in &self.files {57 for file in &self.files {
58 if let Some(lex_pos) = file.lookup(id) {58 if let Some(lex_pos) = file.lookup(id) {
@@ -67,7 +67,7 @@ impl Graph { · 8 unmodified lines
67 None67 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 let mut remaining = pos.0;71 let mut remaining = pos.0;
72 for (file_index, file) in self.files.iter().enumerate() {72 for (file_index, file) in self.files.iter().enumerate() {
73 match remaining.checked_sub(file.num_commits()) {73 match remaining.checked_sub(file.num_commits()) {
@@ -86,14 +86,14 @@ impl Graph { · 12 unmodified lines
86}86}
87 87
88#[derive(Clone)]88#[derive(Clone)]
89pub(crate) struct LookupByIdResult<'a> {89struct LookupByIdResult<'a> {
90 pub file: &'a File,90 pub file: &'a File,
91 pub graph_pos: graph::Position,91 pub graph_pos: graph::Position,
92 pub file_pos: file::Position,92 pub file_pos: file::Position,
93}93}
94 94
95#[derive(Clone)]95#[derive(Clone)]
96pub(crate) struct LookupByPositionResult<'a> {96struct LookupByPositionResult<'a> {
97 pub file: &'a File,97 pub file: &'a File,
98 pub file_index: usize,98 pub file_index: usize,
99 pub pos: file::Position,99 pub pos: file::Position,