diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
commit | a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch) | |
tree | 24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/select/selection_file | |
parent | docs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff) | |
download | yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.tar.gz yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip |
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to '')
-rw-r--r-- | src/select/selection_file/display.rs | 2 | ||||
-rw-r--r-- | src/select/selection_file/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/select/selection_file/display.rs b/src/select/selection_file/display.rs index 1f4e09b..8ff6a15 100644 --- a/src/select/selection_file/display.rs +++ b/src/select/selection_file/display.rs @@ -32,7 +32,7 @@ impl Video { let opts = get_video_opts(app, &self.extractor_hash) .await? - .to_cli_flags(&app); + .to_cli_flags(app); let opts_white = if !opts.is_empty() { " " } else { "" }; let publish_date = if let Some(date) = self.publish_date { diff --git a/src/select/selection_file/mod.rs b/src/select/selection_file/mod.rs index bdb0866..d228023 100644 --- a/src/select/selection_file/mod.rs +++ b/src/select/selection_file/mod.rs @@ -28,7 +28,7 @@ pub fn process_line(line: &str) -> Result<Option<Vec<String>>> { let mut vec = Vec::with_capacity(tri.arguments().len() + 1); vec.push(tri.command().to_owned()); - vec.extend(tri.arguments().to_vec().into_iter()); + vec.extend(tri.arguments().to_vec()); Ok(Some(vec)) } |