Skip to content

Commit 7fc8d06

Browse files
committed
refactor: remove unnecessary Cow::Borrowed wrapper in URL query parsing
Signed-off-by: Xiaobo Liu <[email protected]>
1 parent f98714e commit 7fc8d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ice/src/url/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl Url {
190190
return Err(Error::ErrInvalidQuery);
191191
}
192192
if let Some((key, value)) = q_args.next() {
193-
if key == Cow::Borrowed("transport") {
193+
if key == "transport" {
194194
let proto: ProtoType = value.as_ref().into();
195195
if proto == ProtoType::Unknown {
196196
return Err(Error::ErrProtoType);

0 commit comments

Comments
 (0)