]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/help.rs
Deal with all lints
[rbdr/blog] / src / command / help.rs
index 7ddcba8f5b9d6b275b1bdf0a8f625380d3f0d65f..b682fc005ef5fcb4716aad751518fc312f358e47 100644 (file)
@@ -1,5 +1,6 @@
-use std::io::Result;
 use super::available_commands;
+use crate::configuration::Configuration;
+use std::io::Result;
 
 pub struct Help;
 
@@ -14,15 +15,15 @@ impl super::Command for Help {
         vec![]
     }
 
-    fn execute(&self, _: Option<&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>> {