mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: Fix warning in fonts/platform/macos/font_list.rs
(#33971)
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
6fdd5ce4cb
commit
f553bda7eb
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ impl LocalFontIdentifier {
|
||||||
// listed in the font.
|
// listed in the font.
|
||||||
let file = File::open(Path::new(&*self.path)).ok()?;
|
let file = File::open(Path::new(&*self.path)).ok()?;
|
||||||
let mmap = unsafe { Mmap::map(&file).ok()? };
|
let mmap = unsafe { Mmap::map(&file).ok()? };
|
||||||
Some((&mmap[..]).to_vec())
|
Some(mmap[..].to_vec())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue