@@ -12,13 +12,13 @@ use util::errors::{CargoResult, CargoResultExt, CargoError};
12
12
13
13
/// Information about a dependency requested by a Cargo manifest.
14
14
/// Cheap to copy.
15
- #[ derive( PartialEq , Eq , Ord , PartialOrd , Clone , Debug ) ]
15
+ #[ derive( PartialEq , Eq , Hash , Ord , PartialOrd , Clone , Debug ) ]
16
16
pub struct Dependency {
17
17
inner : Rc < Inner > ,
18
18
}
19
19
20
20
/// The data underlying a Dependency.
21
- #[ derive( PartialEq , Eq , Ord , PartialOrd , Clone , Debug ) ]
21
+ #[ derive( PartialEq , Eq , Hash , Ord , PartialOrd , Clone , Debug ) ]
22
22
struct Inner {
23
23
name : String ,
24
24
source_id : SourceId ,
@@ -38,7 +38,7 @@ struct Inner {
38
38
platform : Option < Platform > ,
39
39
}
40
40
41
- #[ derive( Eq , PartialEq , Ord , PartialOrd , Clone , Debug ) ]
41
+ #[ derive( Eq , PartialEq , Hash , Ord , PartialOrd , Clone , Debug ) ]
42
42
pub enum Platform {
43
43
Name ( String ) ,
44
44
Cfg ( CfgExpr ) ,
@@ -76,7 +76,7 @@ impl ser::Serialize for Dependency {
76
76
}
77
77
}
78
78
79
- #[ derive( PartialEq , Eq , Ord , PartialOrd , Clone , Debug , Copy ) ]
79
+ #[ derive( PartialEq , Eq , Hash , Ord , PartialOrd , Clone , Debug , Copy ) ]
80
80
pub enum Kind {
81
81
Normal ,
82
82
Development ,
0 commit comments