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 @@ -20,7 +20,7 @@ pub struct Dependency {
2020 pub id : i32 ,
2121 pub version_id : i32 ,
2222 pub crate_id : i32 ,
23- pub req : semver :: VersionReq ,
23+ pub req : String ,
2424 pub optional : bool ,
2525 pub default_features : bool ,
2626 pub features : Vec < String > ,
@@ -56,7 +56,7 @@ impl Dependency {
5656 id : self . id ,
5757 version_id : self . version_id ,
5858 crate_id : crate_name. into ( ) ,
59- req : self . req . to_string ( ) ,
59+ req : self . req ,
6060 optional : self . optional ,
6161 default_features : self . default_features ,
6262 features : self . features ,
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ fn new_krate_with_dependency() {
200200
201201 assert_eq ! ( dependencies. len( ) , 1 ) ;
202202 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" ) ;
204204}
205205
206206#[ test]
You can’t perform that action at this time.
0 commit comments