Skip to content

Commit f1fbd7d

Browse files
Handle ActionHasher::hash result in example (#81)
* Handle ActionHasher::hash result in example * Use a clearer expect message. Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 3503796 commit f1fbd7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hasher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! pool: None,
2020
//! restat: false,
2121
//! };
22-
//! let hash = ActionHasher::hash(&action);
22+
//! let hash = ActionHasher::hash(&action).expect("failed to hash action");
2323
//! assert!(!hash.is_empty());
2424
//! ```
2525

0 commit comments

Comments
 (0)