From 7edb7f578d5e87a4d9e28586c2e066269041cc1d Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 18 Jul 2025 13:22:14 +0200 Subject: Apply formatting --- src/command/add_remote.rs | 4 ++-- src/command/publish.rs | 4 ++-- src/command/publish_archive.rs | 5 ++--- src/command/status/configuration_status.rs | 2 -- 4 files changed, 6 insertions(+), 9 deletions(-) (limited to 'src/command') diff --git a/src/command/add_remote.rs b/src/command/add_remote.rs index d22d484..7824af9 100644 --- a/src/command/add_remote.rs +++ b/src/command/add_remote.rs @@ -21,8 +21,8 @@ impl super::Command for AddRemote { configuration: &Configuration, _: &str, ) -> Result<()> { - let input = input - .ok_or_else(|| Error::other("You must provide a location for the remote."))?; + let input = + input.ok_or_else(|| Error::other("You must provide a location for the remote."))?; add( &configuration.config_directory, &configuration.remote_config, diff --git a/src/command/publish.rs b/src/command/publish.rs index 4b174de..e203f62 100644 --- a/src/command/publish.rs +++ b/src/command/publish.rs @@ -23,8 +23,8 @@ impl super::Command for Publish { configuration: &Configuration, _: &str, ) -> Result<()> { - let input = input - .ok_or_else(|| Error::other("You must provide a location to publish the blog"))?; + let input = + input.ok_or_else(|| Error::other("You must provide a location to publish the blog"))?; Command::new(COMMAND) .arg("--version") diff --git a/src/command/publish_archive.rs b/src/command/publish_archive.rs index 289b0c8..0d1bca5 100644 --- a/src/command/publish_archive.rs +++ b/src/command/publish_archive.rs @@ -23,9 +23,8 @@ impl super::Command for PublishArchive { configuration: &Configuration, _: &str, ) -> Result<()> { - let input = input.ok_or_else(|| { - Error::other("You must provide a location to publish the archive") - })?; + let input = input + .ok_or_else(|| Error::other("You must provide a location to publish the archive"))?; Command::new(COMMAND) .arg("--version") diff --git a/src/command/status/configuration_status.rs b/src/command/status/configuration_status.rs index 4a01768..5b847d1 100644 --- a/src/command/status/configuration_status.rs +++ b/src/command/status/configuration_status.rs @@ -61,8 +61,6 @@ mod tests { #[cfg(windows)] use std::os::windows::fs::PermissionsExt; - - use test_utilities::*; use super::*; -- cgit