From 6db945c28f8a4b0bb6582c51cb9dd7a028c87cdb Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 30 Mar 2022 10:18:13 +0800 Subject: [PATCH] Fix a clippy warning --- src/model/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/path.rs b/src/model/path.rs index a742736..bce0b4e 100644 --- a/src/model/path.rs +++ b/src/model/path.rs @@ -6,7 +6,7 @@ pub struct Path(String); impl Path { pub fn from_url(url: &Url) -> Path { - let path = get_url_without_origin(&url); + let path = get_url_without_origin(url); let path = percent_decode(path.as_bytes()).decode_utf8_lossy(); if path.is_empty() { Path("/".into())