Skip to content

Commit

Permalink
Merge pull request #232 from petrosagg/no_std_uncased
Browse files Browse the repository at this point in the history
phf_shared: make uncased feature compatible with no_std
  • Loading branch information
JohnTitor committed Sep 6, 2021
2 parents eba4cc2 + 3068a18 commit 96dbc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phf_shared/src/lib.rs
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 96dbc0d

Please sign in to comment.