chore: cargo fmt
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
use derive_more::{IsVariant, Unwrap};
|
||||
|
||||
use super::common::Catchable;
|
||||
use super::common as c;
|
||||
use super::common::Catchable;
|
||||
use super::public as p;
|
||||
|
||||
use c::Symbol;
|
||||
|
||||
use crate::vm::{VM, Env};
|
||||
use crate::bytecode::OpCodes;
|
||||
use crate::vm::{Env, VM};
|
||||
|
||||
mod attrset;
|
||||
mod cnst;
|
||||
@@ -187,7 +187,7 @@ impl Value {
|
||||
Catchable(_) => todo!(),
|
||||
PrimOp(_) => "lambda",
|
||||
PartialPrimOp(_) => "lambda",
|
||||
Func(_) => "lambda"
|
||||
Func(_) => "lambda",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -380,7 +380,10 @@ impl Value {
|
||||
)))));
|
||||
*self = val;
|
||||
} else {
|
||||
*self = Value::Catchable(Catchable::new(Some(format!("cannot select from {:?}", self.typename()))))
|
||||
*self = Value::Catchable(Catchable::new(Some(format!(
|
||||
"cannot select from {:?}",
|
||||
self.typename()
|
||||
))))
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user