aboutsummaryrefslogtreecommitdiff
path: root/src/command/help.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/help.rs
parentd26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff)
Commit batch of lints to allow autofix
Diffstat (limited to 'src/command/help.rs')
-rw-r--r--src/command/help.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/help.rs b/src/command/help.rs
index 8d2a2c0..b682fc0 100644
--- a/src/command/help.rs
+++ b/src/command/help.rs
@@ -1,6 +1,6 @@
-use std::io::Result;
use super::available_commands;
use crate::configuration::Configuration;
+use std::io::Result;
pub struct Help;
@@ -15,15 +15,15 @@ impl super::Command for Help {
vec![]
}
- fn execute(&self, _: Option<&String>, _: &Configuration, _: &String) -> Result<()> {
+ fn execute(&self, _: Option<&String>, _: &Configuration, _: &str) -> Result<()> {
let commands = available_commands();
println!("Usage:");
- println!("");
+ println!();
for command in commands {
print!("blog {} ", command.command());
println!("{}", command.help());
}
- return Ok(())
+ Ok(())
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {