From 8d11eb64efa67f1d7a6902300fdffd2c7c08df6c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 18 Jul 2025 13:22:04 +0200 Subject: Apply clippy and formatting --- src/command/add_remote.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command/add_remote.rs') 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, -- cgit