chore: fix Clippy lints

This commit is contained in:
Harsh Shandilya 2023-08-25 04:03:15 +05:30
parent a9a80dc1bc
commit 2e3fdf0e0d
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -105,6 +105,6 @@ mod test {
#[test]
fn cli_assert() {
<Opts as clap::CommandFactory>::command().debug_assert()
<Opts as clap::CommandFactory>::command().debug_assert();
}
}

View File

@ -6,6 +6,8 @@ use url::Url;
const ACCEPTED_MIME_TYPES: [Mime; 2] = [mime::IMAGE_JPEG, mime::IMAGE_PNG];
// `feed` is passed over into two separate methods which consume the value fully.
#[allow(clippy::needless_pass_by_value)]
pub fn invoke(feed: Iter<Tweet>) {
let filter = |url: &Url| {
return if let Some(segment) = url.path().split('/').last() {