Sfoglia il codice sorgente

fix clippy warnings (#891)

Signed-off-by: Chip Reed <chip@chip.sh>
chip 5 anni fa
parent
commit
bbccad4e03
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      tauri-api/src/command.rs
  2. 1 1
      tauri/src/app/runner.rs

+ 1 - 1
tauri-api/src/command.rs

@@ -4,7 +4,7 @@ use std::process::{Child, Command, Stdio};
 use std::os::windows::process::CommandExt;
 
 #[cfg(windows)]
-const CREATE_NO_WINDOW: u32 = 0x08000000;
+const CREATE_NO_WINDOW: u32 = 0x0800_0000;
 
 use tauri_utils::platform;
 

+ 1 - 1
tauri/src/app/runner.rs

@@ -87,7 +87,7 @@ fn setup_content() -> crate::Result<Content<String>> {
       if !output_str.contains("win32webviewhost_cw5n1h2txyewy") {
         println!("Running Loopback command");
         runas::Command::new("powershell")
-          .args(&vec![
+          .args(&[
             "CheckNetIsolation LoopbackExempt -a -n=\"Microsoft.Win32WebViewHost_cw5n1h2txyewy\"",
           ])
           .force_prompt(true)