Check all crates of the workspace
Previously, if the root of the was was a real crate, only this crate was checked. Ideally, we might want some kind of config here (which might be just overriding the whole command), but `--workspace` is def a nicer default.
This commit is contained in:
parent
56590097ed
commit
f2dd023150
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ impl WatchThread {
|
|||
fn new(options: &CheckOptions, workspace_root: &PathBuf) -> WatchThread {
|
||||
let mut args: Vec<String> = vec![
|
||||
options.command.clone(),
|
||||
"--workspace".to_string(),
|
||||
"--message-format=json".to_string(),
|
||||
"--manifest-path".to_string(),
|
||||
format!("{}/Cargo.toml", workspace_root.to_string_lossy()),
|
||||
|
|
Loading…
Add table
Reference in a new issue