Fix compiling for all features.

This commit is contained in:
Stephen Chung
2020-04-28 19:39:28 +08:00
parent d3a97dc86b
commit 6351c07bc6
5 changed files with 8 additions and 9 deletions

View File

@@ -12,12 +12,10 @@ use crate::stdlib::{
};
fn map_get_keys(map: &mut Map) -> Vec<Dynamic> {
map.iter()
.map(|(k, _)| k.to_string().into())
.collect::<Vec<_>>()
map.iter().map(|(k, _)| k.to_string().into()).collect()
}
fn map_get_values(map: &mut Map) -> Vec<Dynamic> {
map.iter().map(|(_, v)| v.clone()).collect::<Vec<_>>()
map.iter().map(|(_, v)| v.clone()).collect()
}
#[cfg(not(feature = "no_object"))]