diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-06 00:57:56 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-06 00:57:56 +0200 |
| commit | d0f582b98712d967b2f95d0405886d063bd89468 (patch) | |
| tree | cc644c21278d336772557366bcdd3e46b22065db /src/command/status/mod.rs | |
| parent | 8b3b94a38b443c50afc5b42cca45db7c18ce280d (diff) | |
Get stricter clippy
Diffstat (limited to 'src/command/status/mod.rs')
| -rw-r--r-- | src/command/status/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/status/mod.rs b/src/command/status/mod.rs index b92ef5f..3bad923 100644 --- a/src/command/status/mod.rs +++ b/src/command/status/mod.rs @@ -20,7 +20,7 @@ impl super::Command for Status { 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)); + println!("{}\n----\n", status_provider(configuration)?); } Ok(()) } @@ -38,6 +38,6 @@ impl super::Command for Status { } } -fn available_status_providers() -> Vec<fn(&Configuration) -> String> { +fn available_status_providers() -> Vec<fn(&Configuration) -> Result<String>> { vec![configuration_status::status, blog_status::status] } |