From b1b62996399eced50ab04dc79e4335b968a5f149 Mon Sep 17 00:00:00 2001 From: Ogrodev Date: Tue, 12 May 2026 23:09:36 -0300 Subject: [PATCH] revert(pi-natives): drop unrelated grep.rs clippy reformat This stylistic change is out of scope for the ACP conformance PR. --- crates/pi-natives/src/grep.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/pi-natives/src/grep.rs b/crates/pi-natives/src/grep.rs index 8b05d9292..27b144a62 100644 --- a/crates/pi-natives/src/grep.rs +++ b/crates/pi-natives/src/grep.rs @@ -592,10 +592,12 @@ fn read_file_bytes(path: &Path) -> io::Result> { return Ok(Some(FileBytes::Owned(buffer))); } - // SAFETY: The mapping is read-only and tied to the opened file handle. - // We do not mutate through this view; the map is dropped immediately - // after search for each file. - let mapping = unsafe { memmap2::Mmap::map(&file) }; + let mapping = unsafe { + // SAFETY: The mapping is read-only and tied to the opened file handle. + // We do not mutate through this view; the map is dropped immediately + // after search for each file. + memmap2::Mmap::map(&file) + }; let bytes = if let Ok(mapped) = mapping { FileBytes::Mapped(mapped)