diff --git a/src/config.rs b/src/config.rs index 07ed67d..fb19540 100644 --- a/src/config.rs +++ b/src/config.rs @@ -432,13 +432,9 @@ fn parse_dependency(name: impl Into, value: &Item) -> Result return Err(ConfigError::EmptyVersion(name)); } // this function does not retrieve the url - return Ok(HttpDependency { - name, - version: version.to_string(), - url: None, - checksum: None, - } - .into()); + return Ok( + HttpDependency { name, version: version.to_string(), url: None, checksum: None }.into() + ); } // we should have a table or inline table diff --git a/src/lib.rs b/src/lib.rs index 2d9a62e..007ac55 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -112,10 +112,10 @@ pub async fn run(command: Subcommands) -> Result<(), SoldeerError> { let skip_warnings = push.skip_warnings; // Check for sensitive files or directories - if !dry_run - && !skip_warnings - && check_dotfiles_recursive(&path) - && !prompt_user_for_confirmation() + if !dry_run && + !skip_warnings && + check_dotfiles_recursive(&path) && + !prompt_user_for_confirmation() { println!("{}", "Push operation aborted by the user.".yellow()); return Ok(());