M10 (2013): rustfmt integration.rs (wrap perm chain)
Desktop (Tauri) / Tauri desktop (Linux) (push) Successful in 3m3s
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:
@@ -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}"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user