chore: removes clippy warning with rust 1.89 (#609)

This commit is contained in:
Matthias Möller
2025-08-08 00:50:30 +02:00
committed by GitHub
parent 19d65a5aa4
commit a387d727b2

View File

@@ -19,7 +19,7 @@ pub fn encode_uri(v: &str) -> String {
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())
.decode_utf8()
.ok()