diff --git a/ice/src/url/mod.rs b/ice/src/url/mod.rs index d55fd48f1..a1413cb66 100644 --- a/ice/src/url/mod.rs +++ b/ice/src/url/mod.rs @@ -1,7 +1,6 @@ #[cfg(test)] mod url_test; -use std::borrow::Cow; use std::convert::From; use std::fmt; @@ -190,7 +189,7 @@ impl Url { return Err(Error::ErrInvalidQuery); } if let Some((key, value)) = q_args.next() { - if key == Cow::Borrowed("transport") { + if key == "transport" { let proto: ProtoType = value.as_ref().into(); if proto == ProtoType::Unknown { return Err(Error::ErrProtoType); @@ -208,7 +207,7 @@ impl Url { return Err(Error::ErrInvalidQuery); } if let Some((key, value)) = q_args.next() { - if key == Cow::Borrowed("transport") { + if key == "transport" { let proto: ProtoType = value.as_ref().into(); if proto == ProtoType::Unknown { return Err(Error::ErrProtoType);