Fix all features.

This commit is contained in:
Stephen Chung
2020-07-13 19:38:50 +08:00
parent 930abb8b5c
commit adc96e24bd
13 changed files with 37 additions and 12 deletions

View File

@@ -212,9 +212,11 @@ pub(crate) fn map_std_type_name(name: &str) -> &str {
"string"
} else if name == type_name::<FnPtr>() {
"Fn"
} else if name == type_name::<Instant>() {
"timestamp"
} else {
#[cfg(not(feature = "no_std"))]
if name == type_name::<Instant>() {
return "timestamp";
}
#[cfg(not(feature = "no_index"))]
if name == type_name::<Array>() {
return "array";