From 4e75792305642ce7c3dee0ee1ed05bd54b362bc0 Mon Sep 17 00:00:00 2001 From: Leynos Date: Fri, 8 Aug 2025 12:08:15 +0100 Subject: [PATCH 1/2] Handle ActionHasher::hash result in example --- src/hasher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasher.rs b/src/hasher.rs index d34a11d1..d01ecf98 100644 --- a/src/hasher.rs +++ b/src/hasher.rs @@ -19,7 +19,7 @@ //! pool: None, //! restat: false, //! }; -//! let hash = ActionHasher::hash(&action); +//! let hash = ActionHasher::hash(&action).expect("hash action"); //! assert!(!hash.is_empty()); //! ``` From 99c506ec5cdfcc81cd4b4c1ea36f1154a45e758c Mon Sep 17 00:00:00 2001 From: Leynos Date: Fri, 8 Aug 2025 12:13:50 +0100 Subject: [PATCH 2/2] Use a clearer expect message. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/hasher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hasher.rs b/src/hasher.rs index d01ecf98..40984f1a 100644 --- a/src/hasher.rs +++ b/src/hasher.rs @@ -19,7 +19,7 @@ //! pool: None, //! restat: false, //! }; -//! let hash = ActionHasher::hash(&action).expect("hash action"); +//! let hash = ActionHasher::hash(&action).expect("failed to hash action"); //! assert!(!hash.is_empty()); //! ```