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/sync_down.rs | |
| parent | d26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff) | |
Commit batch of lints to allow autofix
Diffstat (limited to 'src/command/sync_down.rs')
| -rw-r--r-- | src/command/sync_down.rs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/command/sync_down.rs b/src/command/sync_down.rs index eb8e57a..f9122d4 100644 --- a/src/command/sync_down.rs +++ b/src/command/sync_down.rs @@ -1,6 +1,6 @@ -use std::io::{Result}; use crate::configuration::Configuration; use crate::remote::sync_down; +use std::io::Result; pub struct SyncDown; @@ -15,16 +15,21 @@ impl super::Command for SyncDown { vec![] } - fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> { + fn execute( + &self, + _: Option<&String>, + configuration: &Configuration, + command: &str, + ) -> Result<()> { match sync_down(&configuration.data_directory, &configuration.remote_config) { - Ok(_) => {} + Ok(()) => {} Err(e) => { if command == self.command() { - return Err(e) + return Err(e); } } } - return Ok(()) + Ok(()) } fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> { @@ -39,4 +44,3 @@ impl super::Command for SyncDown { "\t\t\t\tPulls from the git remote if configured" } } - |