M10 (2013): rustfmt integration.rs (wrap perm chain)
Desktop (Tauri) / Tauri desktop (Linux) (push) Successful in 3m3s

cargo fmt --check wanted the fs::metadata(p).map_err(..)?.permissions() chain
wrapped (>100 cols). Fixes desktop build #2829; the frontend already typechecked
clean in that run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FRgehjoz7Yv8LkUfADxACm
This commit is contained in:
2026-07-24 13:26:28 -04:00
co-authored by Claude Opus 4.8
parent 877a6a572f
commit 404e256760
+3 -1
View File
@@ -134,7 +134,9 @@ fn remove_if_exists(p: &Path) -> Result<(), String> {
#[cfg(unix)]
fn set_executable(p: &Path) -> Result<(), String> {
use std::os::unix::fs::PermissionsExt;
let mut perm = fs::metadata(p).map_err(|e| format!("stat: {e}"))?.permissions();
let mut perm = fs::metadata(p)
.map_err(|e| format!("stat: {e}"))?
.permissions();
perm.set_mode(0o755);
fs::set_permissions(p, perm).map_err(|e| format!("chmod: {e}"))
}