diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-18 13:22:04 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-18 13:22:04 +0200 |
| commit | 8d11eb64efa67f1d7a6902300fdffd2c7c08df6c (patch) | |
| tree | 119de904ee30468726d7f58680e1ba47c5dd267e /src/command/add_remote.rs | |
| parent | 5d8b65a9a5742e5db705cf4c8164138eca20c355 (diff) | |
Apply clippy and formatting
Diffstat (limited to 'src/command/add_remote.rs')
| -rw-r--r-- | src/command/add_remote.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/add_remote.rs b/src/command/add_remote.rs index aa3f745..d22d484 100644 --- a/src/command/add_remote.rs +++ b/src/command/add_remote.rs @@ -1,6 +1,6 @@ use crate::configuration::Configuration; use crate::remote::add; -use std::io::{Error, ErrorKind::Other, Result}; +use std::io::{Error, Result}; pub struct AddRemote; @@ -22,7 +22,7 @@ impl super::Command for AddRemote { _: &str, ) -> Result<()> { let input = input - .ok_or_else(|| Error::new(Other, "You must provide a location for the remote."))?; + .ok_or_else(|| Error::other("You must provide a location for the remote."))?; add( &configuration.config_directory, &configuration.remote_config, |