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 @@ -15,7 +15,7 @@ pub struct Dependency {
15
15
pub id : i32 ,
16
16
pub version_id : i32 ,
17
17
pub crate_id : i32 ,
18
- pub req : semver :: VersionReq ,
18
+ pub req : String ,
19
19
pub optional : bool ,
20
20
pub default_features : bool ,
21
21
pub features : Vec < String > ,
@@ -51,7 +51,7 @@ impl Dependency {
51
51
id : self . id ,
52
52
version_id : self . version_id ,
53
53
crate_id : crate_name. into ( ) ,
54
- req : self . req . to_string ( ) ,
54
+ req : self . req ,
55
55
optional : self . optional ,
56
56
default_features : self . default_features ,
57
57
features : self . features ,
Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ fn new_krate_with_dependency() {
884
884
885
885
assert_eq ! ( dependencies. len( ) , 1 ) ;
886
886
assert_eq ! ( dependencies[ 0 ] . crate_id, "foo-dep" ) ;
887
- assert_eq ! ( dependencies[ 0 ] . req, "^ 1.0.0" ) ;
887
+ assert_eq ! ( dependencies[ 0 ] . req, "1.0.0" ) ;
888
888
}
889
889
890
890
#[ test]
You can’t perform that action at this time.
0 commit comments