File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -660,10 +660,10 @@ mod tests {
660660 #[ test]
661661 fn compares_with_a_string ( ) {
662662 let authority: Authority = "def.com" . parse ( ) . unwrap ( ) ;
663- assert ! ( authority < "ghi.com" . to_string ( ) ) ;
664- assert ! ( "ghi.com" . to_string ( ) > authority) ;
665- assert ! ( authority > "abc.com" . to_string ( ) ) ;
666- assert ! ( "abc.com" . to_string ( ) < authority) ;
663+ assert ! ( authority < "ghi.com" ) ;
664+ assert ! ( "ghi.com" > authority) ;
665+ assert ! ( authority > "abc.com" ) ;
666+ assert ! ( "abc.com" < authority) ;
667667 }
668668
669669 #[ test]
Original file line number Diff line number Diff line change @@ -620,10 +620,10 @@ mod tests {
620620 #[ test]
621621 fn compares_with_a_string ( ) {
622622 let path_and_query: PathAndQuery = "/b/world&foo=bar" . parse ( ) . unwrap ( ) ;
623- assert ! ( path_and_query < "/c/world&foo=bar" . to_string ( ) ) ;
624- assert ! ( "/c/world&foo=bar" . to_string ( ) > path_and_query) ;
625- assert ! ( path_and_query > "/a/world&foo=bar" . to_string ( ) ) ;
626- assert ! ( "/a/world&foo=bar" . to_string ( ) < path_and_query) ;
623+ assert ! ( path_and_query < "/c/world&foo=bar" ) ;
624+ assert ! ( "/c/world&foo=bar" > path_and_query) ;
625+ assert ! ( path_and_query > "/a/world&foo=bar" ) ;
626+ assert ! ( "/a/world&foo=bar" < path_and_query) ;
627627 }
628628
629629 #[ test]
You can’t perform that action at this time.
0 commit comments