Explorar el Código

chore(deps) Update Rust crate blake3 to 1.1 (#2810)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
renovate[bot] hace 3 años
padre
commit
2538bc639f

+ 1 - 1
core/tauri-codegen/Cargo.toml

@@ -13,7 +13,7 @@ exclude = [ ".license_template", "CHANGELOG.md", "/target" ]
 readme = "README.md"
 
 [dependencies]
-blake3 = { version = "1.0", features = [ "rayon" ] }
+blake3 = { version = "1.1", features = [ "rayon" ] }
 proc-macro2 = "1"
 quote = "1"
 serde = { version = "1", features = [ "derive" ] }

+ 1 - 5
core/tauri/src/api/process/command.rs

@@ -153,11 +153,7 @@ pub struct Output {
 #[cfg(not(windows))]
 fn relative_command_path(command: String) -> crate::Result<String> {
   match std::env::current_exe()?.parent() {
-    Some(exe_dir) => Ok(format!(
-      "{}/{}",
-      exe_dir.to_string_lossy().to_string(),
-      command
-    )),
+    Some(exe_dir) => Ok(format!("{}/{}", exe_dir.to_string_lossy(), command)),
     None => Err(crate::api::Error::Command("Could not evaluate executable dir".to_string()).into()),
   }
 }

+ 1 - 2
core/tauri/src/api/shell.rs

@@ -12,7 +12,6 @@ pub fn open(path: String, with: Option<String>) -> crate::api::Result<()> {
     } else {
       open::that(&path)
     };
-    exit_status
-      .map_err(|err| crate::api::Error::Shell(format!("failed to open: {}", err.to_string())))
+    exit_status.map_err(|err| crate::api::Error::Shell(format!("failed to open: {}", err)))
   }
 }