Fix clippy error

This commit is contained in:
M3DZIK 2024-04-11 22:37:59 +02:00
parent af0864d272
commit 56cbd96053
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ impl ImgurClient {
image = BASE64_STANDARD.encode(bytes)
}
// validate url adress
else if Url::parse(&path).is_err() {
else if Url::parse(path).is_err() {
Err(Error::InvalidUrlOrFile(path.to_string()))?;
}