mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-06-24 01:02:38 +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 {
|
impl Path {
|
||||||
pub fn from_url(url: &Url) -> 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();
|
let path = percent_decode(path.as_bytes()).decode_utf8_lossy();
|
||||||
if path.is_empty() {
|
if path.is_empty() {
|
||||||
Path("/".into())
|
Path("/".into())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue