Remove usage of various unsafe keyword

This commit is contained in:
marmeladema 2019-07-27 19:15:38 +01:00
parent 78034a90d0
commit 6c26518f61
3 changed files with 17 additions and 16 deletions

View file

@ -50,7 +50,7 @@ fn main() {
let mut phf = File::create(&phf).unwrap();
write!(
&mut phf,
"pub static MAP: phf::Map<&'static [u8], unsafe fn(JSContext, HandleObject)> = "
"pub static MAP: phf::Map<&'static [u8], fn(JSContext, HandleObject)> = "
)
.unwrap();
map.build(&mut phf).unwrap();