Skip to content

Commit c33a897

Browse files
committed
style: fmt
1 parent 752b115 commit c33a897

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/sandbox/seatbelt.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ pub fn generate_seatbelt_profile(params: &SandboxParams) -> Result<String, Seatb
171171
let p = path.display().to_string();
172172
let validated = validate_seatbelt_path(&p)?;
173173
// Use literal filter - only matches the exact path, not children
174-
profile.push_str(&format!("(allow file-read-data (literal \"{validated}\"))\n"));
174+
profile.push_str(&format!(
175+
"(allow file-read-data (literal \"{validated}\"))\n"
176+
));
175177
}
176178
profile.push('\n');
177179
}
@@ -576,10 +578,7 @@ mod tests {
576578
#[test]
577579
fn test_allow_list_dirs_multiple_paths() {
578580
let params = SandboxParams {
579-
allow_list_dirs: vec![
580-
PathBuf::from("/Users"),
581-
PathBuf::from("/Users/testuser"),
582-
],
581+
allow_list_dirs: vec![PathBuf::from("/Users"), PathBuf::from("/Users/testuser")],
583582
..Default::default()
584583
};
585584
let profile = generate_seatbelt_profile(&params).unwrap();

0 commit comments

Comments
 (0)