From 7f5d8b57e178210b1a0395d31060445ff0b66002 Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Thu, 8 Feb 2024 12:37:22 +0900 Subject: [PATCH] jets: replace manual bail:exit call --- rust/ares/src/jets.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/ares/src/jets.rs b/rust/ares/src/jets.rs index 7bb034d..9d1a97d 100644 --- a/rust/ares/src/jets.rs +++ b/rust/ares/src/jets.rs @@ -234,8 +234,7 @@ pub mod util { } pub fn slot(noun: Noun, axis: u64) -> Result { - noun.slot(axis) - .map_err(|_e| JetErr::Fail(Error::Deterministic(Mote::Exit, D(0)))) + noun.slot(axis).map_err(|_e| BAIL_EXIT) } /// Extract a bloq and check that it's computable by the current system