Skip to content

Commit 3f5fc2e

Browse files
Fix clippy lint: mismatched-lifetime-syntaxes
1 parent 2bb0633 commit 3f5fc2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/url/src/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use alloc::{
77
use crate::Result;
88

99
/// UrlDecode the given string
10-
pub fn decode(url: &str) -> Result<Cow<str>> {
10+
pub fn decode(url: &str) -> Result<Cow<'_, str>> {
1111
if !url.contains(['%', '+']) {
1212
return Ok(url.into());
1313
}

crates/url/src/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use alloc::{borrow::Cow, string::String};
33
use crate::Result;
44

55
/// UrlEncode the given string
6-
pub fn encode(url: &str) -> Result<Cow<str>> {
6+
pub fn encode(url: &str) -> Result<Cow<'_, str>> {
77
let is_ascii = |c: &u8| {
88
matches!(c, b'0'..=b'9' | b'A'..=b'Z'
99
| b'a'..=b'z' | b'-' | b'.'

0 commit comments

Comments
 (0)