History

Remove re-export of git_object::borrowed::Id (#63)

Sebastian Thiel committed 5 years ago

Commit a3f28161 parent fdbe70422 files · +64 −69Browse files

Showing the changes to git-commitgraph/tests/commitgraph.rs (1 of 22 files). Show all

Unified · Split

git-commitgraph/tests/commitgraph.rs+4−4
@@ -88,7 +88,7 @@ pub struct RefInfo { · 87 unmodified lines
8888 }
8989
9090 impl RefInfo {
91− pub fn id(&self) -> borrowed::Id {
91+ pub fn id(&self) -> git_hash::borrowed::Id {
9292 self.id.to_borrowed()
9393 }
9494
@@ -96,11 +96,11 @@ impl RefInfo { · 1 unmodified line
9696 self.pos
9797 }
9898
99− pub fn parent_ids(&self) -> impl IntoIterator<Item = borrowed::Id> {
99+ pub fn parent_ids(&self) -> impl IntoIterator<Item = git_hash::borrowed::Id> {
100100 self.parent_ids.iter().map(|x| x.to_borrowed())
101101 }
102102
103− pub fn root_tree_id(&self) -> borrowed::Id {
103+ pub fn root_tree_id(&self) -> git_hash::borrowed::Id {
104104 self.root_tree_id.to_borrowed()
105105 }
106106 }
@@ -136,7 +136,7 @@ pub fn inspect_refs(repo_dir: impl AsRef<Path>, refs: &[&'static str]) -> HashMa · 29 unmodified lines
136136 .collect();
137137 infos.sort_by_key(|x| x.1);
138138
139− let get_pos = |id: borrowed::Id| -> GraphPosition {
139+ let get_pos = |id: git_hash::borrowed::Id| -> GraphPosition {
140140 let pos: u32 = infos
141141 .binary_search_by_key(&id, |x| x.1.to_borrowed())
142142 .expect("sorted_ids to contain id")