Skip to content

Commit

Permalink
chore(deps) Update Rust crate sha2 to 0.10 (#3045)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
3 people committed Dec 9, 2021
1 parent 17a1ad6 commit c664e9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tooling/bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ attohttpc = "0.18"
uuid = { version = "0.8", features = [ "v4", "v5" ] }
bitness = "0.4"
winreg = "0.10"
sha2 = "0.9"
sha2 = "0.10"
hex = "0.4"

[target."cfg(target_os = \"macos\")".dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tooling/bundler/src/bundle/category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl FromStr for AppCategory {
.1
.to_string();
}
input = input.replace(" ", "");
input = input.replace("-", "");
input = input.replace(' ', "");
input = input.replace('-', "");

// Find best match:
let mut best_confidence = 0.0;
Expand Down
8 changes: 4 additions & 4 deletions tooling/bundler/src/bundle/path_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ where
"Path is not a directory".to_owned(),
));
}
let dir_name;
if let Some(val) = from.components().last() {
dir_name = val.as_os_str();

let dir_name = if let Some(val) = from.components().last() {
val.as_os_str()
} else {
return Err(crate::Error::PathUtilError(
"Invalid Folder form".to_owned(),
));
}
};
let mut to: PathBuf = to.as_ref().to_path_buf();
if !options.content_only && (!options.copy_files || to.exists()) {
to.push(dir_name);
Expand Down

0 comments on commit c664e9d

Please sign in to comment.