Skip to content

Commit

Permalink
phf_shared: make uncased feature compatible with no_std
Browse files Browse the repository at this point in the history
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
  • Loading branch information
petrosagg committed Sep 6, 2021
1 parent eba4cc2 commit 3068a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phf_shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl FmtConst for uncased::UncasedStr {
// transmute is not stable in const fns (rust-lang/rust#53605), so
// `UncasedStr::new` can't be a const fn itself, but we can inline the
// call to transmute here in the meantime.
f.write_str("unsafe { ::std::mem::transmute::<&'static str, &'static UncasedStr>(")?;
f.write_str("unsafe { ::core::mem::transmute::<&'static str, &'static UncasedStr>(")?;
self.as_str().fmt_const(f)?;
f.write_str(") }")
}
Expand Down

0 comments on commit 3068a18

Please sign in to comment.