Skip to content
This repository was archived by the owner on Dec 29, 2021. It is now read-only.

Commit 3033b17

Browse files
committed
fix: Make Assert must_use
This will help users catch missing `unwrap`s. Fixes #66
1 parent f94a996 commit 3033b17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/assert.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::vec::Vec;
1010

1111
/// Assertions for a specific command.
1212
#[derive(Debug)]
13+
#[must_use]
1314
pub struct Assert {
1415
cmd: Vec<String>,
1516
env: Environment,
@@ -399,6 +400,7 @@ impl Assert {
399400

400401
/// Assertions for command output.
401402
#[derive(Debug)]
403+
#[must_use]
402404
pub struct OutputAssertionBuilder {
403405
assertion: Assert,
404406
kind: OutputKind,

0 commit comments

Comments
 (0)