Skip to content

Commit 127f446

Browse files
authored
Merge pull request #417 from epage/must_use
fix: Add must_use before assertions are applied
2 parents 7db7462 + 01cf690 commit 127f446

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/snapbox/src/cmd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ impl Command {
290290
/// .stdout_eq("42");
291291
/// ```
292292
#[track_caller]
293+
#[must_use]
293294
pub fn assert(self) -> OutputAssert {
294295
let config = self.config.clone();
295296
match self.output() {

0 commit comments

Comments
 (0)