Skip to content

Commit 1993e73

Browse files
committed
clippy
1 parent 0599ec3 commit 1993e73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/desktop/src-tauri/src

apps/desktop/src-tauri/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ async fn open_file_path(_app: AppHandle, path: PathBuf) -> Result<(), String> {
12321232
Command::new("explorer")
12331233
.args(["/select,", path_str])
12341234
.spawn()
1235-
.map_err(|e| format!("Failed to open folder: {}", e))?;
1235+
.map_err(|e| format!("Failed to open folder: {e}"))?;
12361236
}
12371237

12381238
#[cfg(target_os = "macos")]
@@ -1254,7 +1254,7 @@ async fn open_file_path(_app: AppHandle, path: PathBuf) -> Result<(), String> {
12541254
.ok_or("Invalid path")?,
12551255
)
12561256
.spawn()
1257-
.map_err(|e| format!("Failed to open folder: {}", e))?;
1257+
.map_err(|e| format!("Failed to open folder: {e}"))?;
12581258
}
12591259

12601260
Ok(())

0 commit comments

Comments
 (0)