File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub struct Dependency {
20
20
pub id : i32 ,
21
21
pub version_id : i32 ,
22
22
pub crate_id : i32 ,
23
- pub req : semver :: VersionReq ,
23
+ pub req : String ,
24
24
pub optional : bool ,
25
25
pub default_features : bool ,
26
26
pub features : Vec < String > ,
@@ -56,7 +56,7 @@ impl Dependency {
56
56
id : self . id ,
57
57
version_id : self . version_id ,
58
58
crate_id : crate_name. into ( ) ,
59
- req : self . req . to_string ( ) ,
59
+ req : self . req ,
60
60
optional : self . optional ,
61
61
default_features : self . default_features ,
62
62
features : self . features ,
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ fn new_krate_with_dependency() {
200
200
201
201
assert_eq ! ( dependencies. len( ) , 1 ) ;
202
202
assert_eq ! ( dependencies[ 0 ] . crate_id, "foo-dep" ) ;
203
- assert_eq ! ( dependencies[ 0 ] . req, "^ 1.0.0" ) ;
203
+ assert_eq ! ( dependencies[ 0 ] . req, "1.0.0" ) ;
204
204
}
205
205
206
206
#[ test]
You can’t perform that action at this time.
0 commit comments