1
0
Fork 0
mirror of https://github.com/MedzikUser/imgurs synced 2024-08-15 00:03:19 +00:00

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

View file

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