mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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.
|
||||
let file = File::open(Path::new(&*self.path)).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