mirror of https://github.com/msfjarvis/twt.git
chore: fix Clippy lints
This commit is contained in:
parent
a9a80dc1bc
commit
2e3fdf0e0d
|
@ -105,6 +105,6 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn cli_assert() {
|
||||
<Opts as clap::CommandFactory>::command().debug_assert()
|
||||
<Opts as clap::CommandFactory>::command().debug_assert();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue