Fix no_std build.
This commit is contained in:
@@ -348,7 +348,11 @@ impl EvalAltResult {
|
||||
pub(crate) fn dump_fields(&self, map: &mut crate::Map) {
|
||||
map.insert(
|
||||
"error".into(),
|
||||
format!("{:?}", self).split('(').next().unwrap().into(),
|
||||
crate::stdlib::format!("{:?}", self)
|
||||
.split('(')
|
||||
.next()
|
||||
.unwrap()
|
||||
.into(),
|
||||
);
|
||||
|
||||
match self {
|
||||
|
Reference in New Issue
Block a user