@@ -19,7 +19,7 @@ impl Default for Algorithm {
1919
2020impl Algorithm {
2121 /// Add `id` to our priority queue and *add* `flags` to it.
22- fn add_to_queue ( & mut self , id : ObjectId , mark : Flags , graph : & mut crate :: Graph < ' _ > ) -> Result < ( ) , Error > {
22+ fn add_to_queue ( & mut self , id : ObjectId , mark : Flags , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Result < ( ) , Error > {
2323 let commit = graph. try_lookup_or_insert_commit ( id, |entry| {
2424 entry. flags |= mark | Flags :: SEEN ;
2525 } ) ?;
@@ -32,7 +32,7 @@ impl Algorithm {
3232 Ok ( ( ) )
3333 }
3434
35- fn mark_common ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ > ) -> Result < ( ) , Error > {
35+ fn mark_common ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Result < ( ) , Error > {
3636 let mut is_common = false ;
3737 if let Some ( commit) = graph
3838 . try_lookup_or_insert_commit ( id, |entry| {
@@ -76,7 +76,7 @@ impl Algorithm {
7676 & mut self ,
7777 entry : Metadata ,
7878 parent_id : ObjectId ,
79- graph : & mut crate :: Graph < ' _ > ,
79+ graph : & mut crate :: Graph < ' _ , ' _ > ,
8080 ) -> Result < bool , Error > {
8181 let mut was_seen = false ;
8282 if let Some ( parent) = graph
@@ -113,7 +113,7 @@ impl Algorithm {
113113}
114114
115115impl Negotiator for Algorithm {
116- fn known_common ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ > ) -> Result < ( ) , Error > {
116+ fn known_common ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Result < ( ) , Error > {
117117 if graph
118118 . get ( & id)
119119 . map_or ( false , |commit| commit. data . flags . contains ( Flags :: SEEN ) )
@@ -123,7 +123,7 @@ impl Negotiator for Algorithm {
123123 self . add_to_queue ( id, Flags :: ADVERTISED , graph)
124124 }
125125
126- fn add_tip ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ > ) -> Result < ( ) , Error > {
126+ fn add_tip ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Result < ( ) , Error > {
127127 if graph
128128 . get ( & id)
129129 . map_or ( false , |commit| commit. data . flags . contains ( Flags :: SEEN ) )
@@ -133,7 +133,7 @@ impl Negotiator for Algorithm {
133133 self . add_to_queue ( id, Flags :: default ( ) , graph)
134134 }
135135
136- fn next_have ( & mut self , graph : & mut crate :: Graph < ' _ > ) -> Option < Result < ObjectId , Error > > {
136+ fn next_have ( & mut self , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Option < Result < ObjectId , Error > > {
137137 loop {
138138 let id = self . revs . pop_value ( ) . filter ( |_| self . non_common_revs != 0 ) ?;
139139 let commit = graph. get_mut ( & id) . expect ( "it was added to the graph by now" ) ;
@@ -166,7 +166,7 @@ impl Negotiator for Algorithm {
166166 }
167167 }
168168
169- fn in_common_with_remote ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ > ) -> Result < bool , Error > {
169+ fn in_common_with_remote ( & mut self , id : ObjectId , graph : & mut crate :: Graph < ' _ , ' _ > ) -> Result < bool , Error > {
170170 let mut was_seen = false ;
171171 let known_to_be_common = graph. get ( & id) . map_or ( false , |commit| {
172172 was_seen = commit. data . flags . contains ( Flags :: SEEN ) ;
0 commit comments