diff --git a/rust/ares/src/jets/bits.rs b/rust/ares/src/jets/bits.rs index 475558f..4c13d0f 100644 --- a/rust/ares/src/jets/bits.rs +++ b/rust/ares/src/jets/bits.rs @@ -3,7 +3,7 @@ use crate::interpreter::Context; use crate::jets::util::*; use crate::jets::Result; -use crate::noun::{DirectAtom, IndirectAtom, Noun, D}; +use crate::noun::{IndirectAtom, Noun, D}; use std::cmp; crate::gdb!(); diff --git a/rust/ares/src/jets/list.rs b/rust/ares/src/jets/list.rs index 00c3a08..3a2d318 100644 --- a/rust/ares/src/jets/list.rs +++ b/rust/ares/src/jets/list.rs @@ -1,8 +1,8 @@ /** Text processing jets */ -use crate::interpreter::{interpret, Context, Error}; -use crate::jets::util::slot; -use crate::jets::{JetErr, Result}; +use crate::interpreter::{interpret, Context}; +use crate::jets::util::{slot, BAIL_FAIL}; +use crate::jets::Result; use crate::noun::{Cell, Noun, D, T}; use bitvec::order::Lsb0; use bitvec::slice::BitSlice; @@ -82,7 +82,7 @@ pub fn jet_turn(context: &mut Context, subject: Noun) -> Result { } } else { if unsafe { !list.raw_equals(D(0)) } { - return Err(JetErr::Fail(Error::Deterministic(D(0)))); + return Err(BAIL_FAIL); } unsafe { *dest = D(0); @@ -106,7 +106,7 @@ pub fn jet_turn(context: &mut Context, subject: Noun) -> Result { } } else { if unsafe { !list.raw_equals(D(0)) } { - return Err(JetErr::Fail(Error::Deterministic(D(0)))); + return Err(BAIL_FAIL); } unsafe { *dest = D(0);