Skip to content

Commit 1e00961

Browse files
authored
Merge pull request #44 from jyn514/must-use
Warn when commands are not run
2 parents 7cc10ac + 14dfe29 commit 1e00961

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- allow workspaces by having validate_manifest now use `metadata --no-deps` instead of deprecated `read-manifest`
1111
therefor no longer failing on workspaces and TomlTweaker no longer removing the workspace table from `Cargo.toml`
12-
12+
- `Command` now warns when it is not used.
1313

1414
## [0.10.0] - 2020-08-08
1515

src/cmd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ impl<'a, B: Runnable> Runnable for &'a B {
188188
/// output processing, output logging and sandboxing.
189189
///
190190
/// [std]: https://doc.rust-lang.org/std/process/struct.Command.html
191+
#[must_use = "call `.run()` to run the command"]
191192
pub struct Command<'w, 'pl> {
192193
workspace: Option<&'w Workspace>,
193194
sandbox: Option<SandboxBuilder>,

0 commit comments

Comments
 (0)