aboutsummaryrefslogtreecommitdiff
path: root/src/command/add_remote.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/add_remote.rs')
-rw-r--r--src/command/add_remote.rs4
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,