From d9cab58f0abebe89ce3dbef9edd6228a72100398 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Thu, 14 Sep 2023 08:51:38 -0700 Subject: [PATCH] Fix `Transaction::execute()` test without std. This also makes it more accurate. --- all-is-cubes/src/transaction.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/all-is-cubes/src/transaction.rs b/all-is-cubes/src/transaction.rs index 423c57aa0..61348e766 100644 --- a/all-is-cubes/src/transaction.rs +++ b/all-is-cubes/src/transaction.rs @@ -83,14 +83,14 @@ pub trait Transaction: Merge { /// need to override this. Equivalent to: /// /// ```rust - /// # use all_is_cubes::transaction::{Transaction, no_outputs}; + /// # use all_is_cubes::transaction::{Transaction, ExecuteError, no_outputs}; /// # use all_is_cubes::universe::{Universe, UniverseTransaction}; /// # let transaction = UniverseTransaction::default(); /// # let target = &mut Universe::new(); /// # let outputs = &mut no_outputs; - /// let check = transaction.check(target)?; - /// transaction.commit(target, check, outputs)?; - /// # Ok::<(), Box>(()) + /// let check = transaction.check(target).map_err(ExecuteError::Check)?; + /// transaction.commit(target, check, outputs).map_err(ExecuteError::Commit)?; + /// # Ok::<(), ExecuteError>(()) /// ``` fn execute( &self,