File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -444,11 +444,10 @@ mod tests {
444
444
fn matching ( ) {
445
445
let url = Url :: parse ( "https://example.com" ) . unwrap ( ) ;
446
446
let sid = SourceId :: for_registry ( & url) . unwrap ( ) ;
447
- let foo = PackageId :: new ( "foo" , "1.2.3" , sid) . unwrap ( ) ;
448
- let bar = PackageId :: new ( "bar" , "1.2.3" , sid) . unwrap ( ) ;
449
447
448
+ let foo = PackageId :: new ( "foo" , "1.2.3" , sid) . unwrap ( ) ;
450
449
assert ! ( PackageIdSpec :: parse( "foo" ) . unwrap( ) . matches( foo) ) ;
451
- assert ! ( !PackageIdSpec :: parse( "foo " ) . unwrap( ) . matches( bar ) ) ;
450
+ assert ! ( !PackageIdSpec :: parse( "bar " ) . unwrap( ) . matches( foo ) ) ;
452
451
assert ! ( PackageIdSpec :: parse( "foo:1.2.3" ) . unwrap( ) . matches( foo) ) ;
453
452
assert ! ( !PackageIdSpec :: parse( "foo:1.2.2" ) . unwrap( ) . matches( foo) ) ;
454
453
assert ! ( PackageIdSpec :: parse( "foo@1.2.3" ) . unwrap( ) . matches( foo) ) ;
You can’t perform that action at this time.
0 commit comments