Better debug formatting for StaticVec.

This commit is contained in:
Stephen Chung
2020-06-11 22:18:30 +08:00
parent 8f55a15ab0
commit e4cca7620f
4 changed files with 18 additions and 20 deletions

View File

@@ -82,7 +82,7 @@ impl fmt::Debug for CallableFunction {
Self::Pure(_) => write!(f, "NativePureFunction"),
Self::Method(_) => write!(f, "NativeMethod"),
Self::Iterator(_) => write!(f, "NativeIterator"),
Self::Script(fn_def) => write!(f, "{:?}", fn_def),
Self::Script(fn_def) => fmt::Debug::fmt(fn_def, f),
}
}
}