File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ lazy_static! {
2323}
2424
2525/// Unique identifier for a source of packages.
26- #[ derive( Clone , Eq , Debug ) ]
26+ #[ derive( Clone , Copy , Eq , Debug ) ]
2727pub struct SourceId {
2828 inner : & ' static SourceIdInner ,
2929}
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ pub fn resolve_with_previous<'a, 'cfg>(
150150 //
151151 // TODO: This seems like a hokey reason to single out the registry as being
152152 // different
153- let mut to_avoid_sources = HashSet :: new ( ) ;
153+ let mut to_avoid_sources: HashSet < & SourceId > = HashSet :: new ( ) ;
154154 if let Some ( to_avoid) = to_avoid {
155155 to_avoid_sources. extend (
156156 to_avoid
@@ -161,7 +161,7 @@ pub fn resolve_with_previous<'a, 'cfg>(
161161 }
162162
163163 let keep = |p : & & ' a PackageId | {
164- !to_avoid_sources. contains ( & p. source_id ( ) ) && match to_avoid {
164+ !to_avoid_sources. contains ( p. source_id ( ) ) && match to_avoid {
165165 Some ( set) => !set. contains ( p) ,
166166 None => true ,
167167 }
You can’t perform that action at this time.
0 commit comments