From a952d504a20a442027b3554b423941c9f5b6f4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Thu, 7 Aug 2025 17:00:01 +0200 Subject: [PATCH] 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-lint --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 1c0f822..79faa28 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -19,7 +19,7 @@ pub fn encode_uri(v: &str) -> String { parts.join("/") } -pub fn decode_uri(v: &str) -> Option> { +pub fn decode_uri(v: &str) -> Option> { percent_encoding::percent_decode(v.as_bytes()) .decode_utf8() .ok()