From 17f12d3663677c36e30fc8d3a606ea94bf71a152 Mon Sep 17 00:00:00 2001 From: beeb <703631+beeb@users.noreply.github.com> Date: Mon, 5 Aug 2024 08:02:14 +0200 Subject: [PATCH] style: fix format --- src/config.rs | 10 +++------- src/lib.rs | 8 ++++---- 2 files changed, 7 insertions(+), 11 deletions(-) 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(());