diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-05 00:38:55 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-05 00:38:55 +0100 |
| commit | d7fef30ac3f539975ef9edbba8e0af4a4e9ff3de (patch) | |
| tree | 1e71dd131261a8f7a13d86d4dddd7d421e6a09f4 /src/command/status/mod.rs | |
| parent | d26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff) | |
Commit batch of lints to allow autofix
Diffstat (limited to 'src/command/status/mod.rs')
| -rw-r--r-- | src/command/status/mod.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/command/status/mod.rs b/src/command/status/mod.rs index e620f78..b92ef5f 100644 --- a/src/command/status/mod.rs +++ b/src/command/status/mod.rs @@ -1,8 +1,8 @@ -mod configuration_status; mod blog_status; +mod configuration_status; -use std::io::Result; use crate::configuration::Configuration; +use std::io::Result; pub struct Status; @@ -17,12 +17,12 @@ impl super::Command for Status { vec![] } - fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> { + fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &str) -> Result<()> { let status_providers = available_status_providers(); for status_provider in status_providers { println!("{}\n----\n", status_provider(configuration)); } - return Ok(()) + Ok(()) } fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> { @@ -39,8 +39,5 @@ impl super::Command for Status { } fn available_status_providers() -> Vec<fn(&Configuration) -> String> { - vec![ - configuration_status::status, - blog_status::status, - ] + vec![configuration_status::status, blog_status::status] } |