X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/a9c6be4162bd15bd41ba3605127b56cb1eb32f32..b17907faf8d9693cef94a6048d802bd4ced9102f:/src/command/version.rs?ds=sidebyside 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> {