mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-06-10 02:01:35 +00:00
Fix a clippy warning
This commit is contained in:
parent
548ea65072
commit
6db945c28f
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue