Remove redundant std.

This commit is contained in:
Stephen Chung
2021-04-20 19:19:35 +08:00
parent 0f66c67f82
commit 8ff1f57900
9 changed files with 18 additions and 27 deletions

View File

@@ -1717,13 +1717,13 @@ impl From<&ImmutableString> for Dynamic {
impl From<&crate::Identifier> for Dynamic {
#[inline(always)]
fn from(value: &crate::Identifier) -> Self {
std::string::ToString::to_string(value).into()
value.to_string().into()
}
}
#[cfg(not(feature = "no_index"))]
impl<T: Variant + Clone> From<std::vec::Vec<T>> for Dynamic {
impl<T: Variant + Clone> From<Vec<T>> for Dynamic {
#[inline(always)]
fn from(value: std::vec::Vec<T>) -> Self {
fn from(value: Vec<T>) -> Self {
Self(Union::Array(
Box::new(value.into_iter().map(Dynamic::from).collect()),
AccessMode::ReadWrite,