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 1
1
#[ cfg( test) ]
2
2
mod url_test;
3
3
4
- use std:: borrow:: Cow ;
5
4
use std:: convert:: From ;
6
5
use std:: fmt;
7
6
@@ -190,7 +189,7 @@ impl Url {
190
189
return Err ( Error :: ErrInvalidQuery ) ;
191
190
}
192
191
if let Some ( ( key, value) ) = q_args. next ( ) {
193
- if key == Cow :: Borrowed ( "transport" ) {
192
+ if key == "transport" {
194
193
let proto: ProtoType = value. as_ref ( ) . into ( ) ;
195
194
if proto == ProtoType :: Unknown {
196
195
return Err ( Error :: ErrProtoType ) ;
@@ -208,7 +207,7 @@ impl Url {
208
207
return Err ( Error :: ErrInvalidQuery ) ;
209
208
}
210
209
if let Some ( ( key, value) ) = q_args. next ( ) {
211
- if key == Cow :: Borrowed ( "transport" ) {
210
+ if key == "transport" {
212
211
let proto: ProtoType = value. as_ref ( ) . into ( ) ;
213
212
if proto == ProtoType :: Unknown {
214
213
return Err ( Error :: ErrProtoType ) ;
You can’t perform that action at this time.
0 commit comments