Skip to content

Commit

Permalink
style: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
beeb committed Aug 5, 2024
1 parent d266ea1 commit 17f12d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,9 @@ fn parse_dependency(name: impl Into<String>, value: &Item) -> Result<Dependency>
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
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
Expand Down

0 comments on commit 17f12d3

Please sign in to comment.