revert(pi-natives): drop unrelated grep.rs clippy reformat

This stylistic change is out of scope for the ACP conformance PR.
This commit is contained in:
Ogrodev
2026-05-12 23:09:36 -03:00
committed by can1357
parent 4e4e74be49
commit b1b6299639
+6 -4
View File
@@ -592,10 +592,12 @@ fn read_file_bytes(path: &Path) -> io::Result<Option<FileBytes>> {
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)