Move CallableFunction to own file.

This commit is contained in:
Stephen Chung
2021-12-20 22:13:00 +08:00
parent 57d7985015
commit b4756b4575
7 changed files with 265 additions and 255 deletions

View File

@@ -611,14 +611,11 @@ impl fmt::Display for Dynamic {
#[cfg(feature = "decimal")]
Union::Decimal(ref value, _, _) => fmt::Display::fmt(value, f),
#[cfg(not(feature = "no_index"))]
Union::Array(ref value, _, _) => fmt::Debug::fmt(value, f),
Union::Array(_, _, _) => fmt::Debug::fmt(self, f),
#[cfg(not(feature = "no_index"))]
Union::Blob(ref value, _, _) => fmt::Debug::fmt(value, f),
Union::Blob(_, _, _) => fmt::Debug::fmt(self, f),
#[cfg(not(feature = "no_object"))]
Union::Map(ref value, _, _) => {
f.write_str("#")?;
fmt::Debug::fmt(value, f)
}
Union::Map(_, _, _) => fmt::Debug::fmt(self, f),
Union::FnPtr(ref value, _, _) => fmt::Display::fmt(value, f),
#[cfg(not(feature = "no_std"))]
Union::TimeStamp(_, _, _) => f.write_str("<timestamp>"),