History

[packetline #178] fix compile warnings

Sebastian Thiel committed 5 years ago

Commit c8d2e721 parent b09f3911 file · +2 −3Browse files

Unified · Split

git-repository/src/ext/object_id.rs+2−3
@@ -1,6 +1,5 @@
11 #![allow(missing_docs)]
22 use git_hash::ObjectId;
3−use git_object::CommitRefIter;
43 #[cfg(feature = "git-traverse")]
54 use git_traverse::commit::ancestors::{Ancestors, State};
65
@@ -12,7 +11,7 @@ pub trait ObjectIdExt: Sealed { · 5 unmodified lines
1211 #[cfg(feature = "git-traverse")]
1312 fn ancestors_iter<Find>(self, find: Find) -> Ancestors<Find, fn(&git_hash::oid) -> bool, State>
1413 where
15− Find: for<'a> FnMut(&git_hash::oid, &'a mut Vec<u8>) -> Option<CommitRefIter<'a>>;
14+ Find: for<'a> FnMut(&git_hash::oid, &'a mut Vec<u8>) -> Option<git_object::CommitRefIter<'a>>;
1615
1716 fn attach<A: easy::Access + Sized>(self, access: &A) -> easy::Oid<'_, A>;
1817 }
@@ -23,7 +22,7 @@ impl ObjectIdExt for ObjectId { · 4 unmodified lines
2322 #[cfg(feature = "git-traverse")]
2423 fn ancestors_iter<Find>(self, find: Find) -> Ancestors<Find, fn(&git_hash::oid) -> bool, State>
2524 where
26− Find: for<'a> FnMut(&git_hash::oid, &'a mut Vec<u8>) -> Option<CommitRefIter<'a>>,
25+ Find: for<'a> FnMut(&git_hash::oid, &'a mut Vec<u8>) -> Option<git_object::CommitRefIter<'a>>,
2726 {
2827 Ancestors::new(Some(self), State::default(), find)
2928 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t