From 485d59dd2df3c01cde207a07f8d2f6cbe93d5ac6 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 29 Jul 2020 20:24:32 +0200 Subject: [PATCH] Expose assert_error function --- Cargo.toml | 2 +- src/tapemachine.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a18eb85..fc3d61c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "charred" -version = "0.1.3" +version = "0.1.4" authors = ["trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/tapemachine.rs b/src/tapemachine.rs index 9698705..432fa7b 100644 --- a/src/tapemachine.rs +++ b/src/tapemachine.rs @@ -173,7 +173,7 @@ impl CharTapeMachine { /// returns an error on the current position and optionally rewinds /// if a rewind index is given #[inline] - fn assert_error(&mut self, rewind_index: Option) -> TapeError { + pub fn assert_error(&mut self, rewind_index: Option) -> TapeError { if let Some(index) = rewind_index { self.rewind_with_error(index) } else {