Parcourir la source

Fix merge conflict causing CLI lifetime to be wrong

Jonathan Kelley il y a 6 mois
Parent
commit
e598cfe31c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/cli/src/serve/handle.rs

+ 2 - 2
packages/cli/src/serve/handle.rs

@@ -195,7 +195,7 @@ impl AppHandle {
 
         // The asset might've been renamed thanks to the manifest, let's attempt to reload that too
         if let Some(resource) = self.app.app.assets.assets.get(&changed_file).as_ref() {
-            let res = std::fs::copy(changed_file, asset_dir.join(resource.bundled_path()));
+            let res = std::fs::copy(&changed_file, asset_dir.join(resource.bundled_path()));
             bundled_name = Some(PathBuf::from(resource.bundled_path()));
             if let Err(e) = res {
                 tracing::debug!("Failed to hotreload asset {e}");
@@ -209,7 +209,7 @@ impl AppHandle {
                 tracing::debug!("Pushing asset to device: {target}");
                 let res = tokio::process::Command::new("adb")
                     .arg("push")
-                    .arg(changed_file)
+                    .arg(&changed_file)
                     .arg(target)
                     .output()
                     .await