aboutsummaryrefslogtreecommitdiff
path: root/src/command/version.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
commitd7fef30ac3f539975ef9edbba8e0af4a4e9ff3de (patch)
tree1e71dd131261a8f7a13d86d4dddd7d421e6a09f4 /src/command/version.rs
parentd26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff)
Commit batch of lints to allow autofix
Diffstat (limited to 'src/command/version.rs')
-rw-r--r--src/command/version.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/version.rs b/src/command/version.rs
index e566c5a..94eb92e 100644
--- a/src/command/version.rs
+++ b/src/command/version.rs
@@ -1,5 +1,5 @@
-use std::io::Result;
use crate::configuration::Configuration;
+use std::io::Result;
pub struct Version;
@@ -14,10 +14,10 @@ impl super::Command for Version {
vec![]
}
- fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
+ fn execute(&self, _: Option<&String>, _: &Configuration, _: &str) -> Result<()> {
let version = env!("CARGO_PKG_VERSION");
- println!("{}", version);
- return Ok(())
+ println!("{version}");
+ Ok(())
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {