Interpreter - Use EnvironmentRef in Callable
This commit is contained in:
parent
34619a8125
commit
1ad55e95f5
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ use std::fmt::Debug;
|
|||
|
||||
use crate::errors::InterpreterError;
|
||||
|
||||
use super::{Environment, Value};
|
||||
use super::{EnvironmentRef, Value};
|
||||
|
||||
/// A callable is some object that supports being called.
|
||||
pub trait Callable: Debug + ToString {
|
||||
|
@ -13,7 +13,7 @@ pub trait Callable: Debug + ToString {
|
|||
/// arguments.
|
||||
fn call(
|
||||
&self,
|
||||
environment: &mut Environment,
|
||||
environment: &EnvironmentRef,
|
||||
arguments: &Vec<Value>,
|
||||
) -> Result<Value, InterpreterError>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue