refactor: removes warning with rust 1.89
Rust introduced with 1.89 a new warning when Lifetime elison in function signature happens. [1] This removes the code which generate those warning. [1] https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lintpull/609/head
parent
19d65a5aa4
commit
a952d504a2
|
@ -19,7 +19,7 @@ pub fn encode_uri(v: &str) -> String {
|
||||||
parts.join("/")
|
parts.join("/")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn decode_uri(v: &str) -> Option<Cow<str>> {
|
pub fn decode_uri(v: &str) -> Option<Cow<'_, str>> {
|
||||||
percent_encoding::percent_decode(v.as_bytes())
|
percent_encoding::percent_decode(v.as_bytes())
|
||||||
.decode_utf8()
|
.decode_utf8()
|
||||||
.ok()
|
.ok()
|
||||||
|
|
Loading…
Reference in New Issue