1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-04 21:58:46 +02:00

Consistently inline formatting arguments (#2413)

This commit is contained in:
Martin Geisler
2024-10-21 14:01:21 -04:00
committed by GitHub
parent ce56ea551e
commit 8bfff0d95a
9 changed files with 12 additions and 12 deletions

View File

@ -91,7 +91,7 @@ impl DirectoryIterator {
// SAFETY: path.as_ptr() cannot be NULL.
let dir = unsafe { ffi::opendir(path.as_ptr()) };
if dir.is_null() {
Err(format!("Could not open {:?}", path))
Err(format!("Could not open {path:?}"))
} else {
Ok(DirectoryIterator { path, dir })
}