aboutsummaryrefslogtreecommitdiff
path: root/src/command/add_remote.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-05 00:38:55 +0100
commitd7fef30ac3f539975ef9edbba8e0af4a4e9ff3de (patch)
tree1e71dd131261a8f7a13d86d4dddd7d421e6a09f4 /src/command/add_remote.rs
parentd26464d12e41e8d53fca8d0e5f9cc6ac03e48f9a (diff)
Commit batch of lints to allow autofix
Diffstat (limited to 'src/command/add_remote.rs')
-rw-r--r--src/command/add_remote.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/command/add_remote.rs b/src/command/add_remote.rs
index e9157f3..e5ca591 100644
--- a/src/command/add_remote.rs
+++ b/src/command/add_remote.rs
@@ -1,6 +1,6 @@
-use std::io::{Error, ErrorKind::Other, Result};
use crate::configuration::Configuration;
use crate::remote::add;
+use std::io::{Error, ErrorKind::Other, Result};
pub struct AddRemote;
@@ -15,10 +15,19 @@ impl super::Command for AddRemote {
vec![]
}
- fn execute(&self, input: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
+ fn execute(
+ &self,
+ input: Option<&String>,
+ configuration: &Configuration,
+ _: &str,
+ ) -> Result<()> {
let input = input
.ok_or_else(|| Error::new(Other, "You must provide a location for the remote."))?;
- add(&configuration.config_directory, &configuration.remote_config, input)
+ add(
+ &configuration.config_directory,
+ &configuration.remote_config,
+ input,
+ )
}
fn after_dependencies(&self) -> Vec<Box<dyn super::Command>> {