cleanup after rebase

This commit is contained in:
Keagan McClelland
2022-05-27 12:59:17 -06:00
parent 61bcd8720d
commit 37344f99a7
7 changed files with 1977 additions and 1227 deletions

View File

@@ -635,11 +635,6 @@ mod js_runtime {
Ok(ctx.input.clone())
}
#[op]
fn get_input(state: &mut OpState) -> Result<Value, AnyError> {
let ctx = state.borrow::<JsContext>();
Ok(ctx.input.clone())
}
#[op]
fn set_value(state: &mut OpState, value: Value) -> Result<(), AnyError> {
let mut answer = state.borrow::<AnswerState>().0.lock();
*answer = value;

View File

@@ -79,7 +79,7 @@ pub enum PackageProcedure {
impl PackageProcedure {
pub fn is_script(&self) -> bool {
match self {
Self::Js(_) => true,
Self::Script(_) => true,
_ => false,
}
}