From d7fef30ac3f539975ef9edbba8e0af4a4e9ff3de Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 5 Jan 2025 00:38:55 +0100 Subject: Commit batch of lints to allow autofix --- src/command/help.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command/help.rs') 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> { -- cgit