Add no_time.
This commit is contained in:
@@ -556,6 +556,7 @@ fn def_type_name<'a>(ty: &'a str, engine: &'a Engine) -> Cow<'a, str> {
|
||||
let ty = ty.replace(type_name::<crate::Map>(), "Map");
|
||||
|
||||
#[cfg(not(feature = "no_std"))]
|
||||
#[cfg(not(feature = "no_time"))]
|
||||
let ty = ty.replace(type_name::<crate::Instant>(), "Instant");
|
||||
|
||||
let ty = ty.replace(type_name::<FnPtr>(), "FnPtr");
|
||||
|
@@ -45,6 +45,7 @@ fn map_std_type_name(name: &str, shorthands: bool) -> &str {
|
||||
return if shorthands { "map" } else { "Map" };
|
||||
}
|
||||
#[cfg(not(feature = "no_std"))]
|
||||
#[cfg(not(feature = "no_time"))]
|
||||
if name == type_name::<crate::Instant>() || name == "Instant" {
|
||||
return if shorthands { "timestamp" } else { "Instant" };
|
||||
}
|
||||
|
Reference in New Issue
Block a user