Skip to content

Commit

Permalink
Fix Transaction::execute() test without std.
Browse files Browse the repository at this point in the history
This also makes it more accurate.
  • Loading branch information
kpreid committed Sep 14, 2023
1 parent 1fdcf57 commit d9cab58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions all-is-cubes/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ pub trait Transaction<T: ?Sized>: 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<dyn std::error::Error + Send + Sync>>(())
/// let check = transaction.check(target).map_err(ExecuteError::Check)?;
/// transaction.commit(target, check, outputs).map_err(ExecuteError::Commit)?;
/// # Ok::<(), ExecuteError>(())
/// ```
fn execute(
&self,
Expand Down

0 comments on commit d9cab58

Please sign in to comment.