Change to no_smartstring feature.

This commit is contained in:
Stephen Chung
2021-03-29 17:13:54 +08:00
parent 07efdddba3
commit 41b48d591f
8 changed files with 68 additions and 62 deletions

View File

@@ -1673,11 +1673,11 @@ impl From<&ImmutableString> for Dynamic {
value.clone().into()
}
}
#[cfg(feature = "smartstring")]
#[cfg(not(feature = "no_smartstring"))]
impl From<&crate::Identifier> for Dynamic {
#[inline(always)]
fn from(value: &crate::Identifier) -> Self {
value.to_string().into()
crate::stdlib::string::ToString::to_string(value).into()
}
}
#[cfg(not(feature = "no_index"))]