Skip to content

Commit

Permalink
Fix panic!() argument (quote it)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpaluch-pil authored and emilio committed Apr 19, 2022
1 parent 841fd4c commit ee6ff69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/tutorial-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ mod tests {
// Finish the compression stream.
let result = BZ2_bzCompressEnd(&mut stream as *mut _);
match result {
r if r == (BZ_PARAM_ERROR as _) => panic!(BZ_PARAM_ERROR),
r if r == (BZ_PARAM_ERROR as _) => panic!("BZ_PARAM_ERROR"),
r if r == (BZ_OK as _) => {},
r => panic!("Unknown return value = {}", r),
}
Expand Down

0 comments on commit ee6ff69

Please sign in to comment.