Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
commita8250abbf1eeff3ee277d93f166c3fd4983d7af3 (patch)
treec72fb58c6477081417a0685b9dac19ff48b8f6c9 /version-helper
parent31d4ba2eaee98cb09eaf1b6c4ab29698018ff4e7 (diff)
Fix various new clippy warnings
Diffstat (limited to 'version-helper')
-rw-r--r--version-helper/src/git.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/version-helper/src/git.rs b/version-helper/src/git.rs
index e32c6a111..68bb20662 100644
--- a/version-helper/src/git.rs
+++ b/version-helper/src/git.rs
@@ -12,7 +12,7 @@ pub fn repo_hash<P: AsRef<Path>>(path: P) -> Option<(String, String)> {
Some(path) => vec!["-C", path],
None => vec![],
};
- args.extend(&["log", "-1", "--format=%h_%cd", "--date=short"]);
+ args.extend(["log", "-1", "--format=%h_%cd", "--date=short"]);
let output = Command::new("git").args(&args).output().ok()?;
if !output.status.success() {
return None;
@@ -38,7 +38,7 @@ fn dirty<P: AsRef<Path>>(path: P) -> bool {
Some(path) => vec!["-C", path],
None => vec![],
};
- args.extend(&["ls-files", "-m"]);
+ args.extend(["ls-files", "-m"]);
match Command::new("git").args(&args).output() {
Ok(modified_files) => !modified_files.stdout.is_empty(),
Err(_) => false,