diff --git a/lib/mode.coffee b/lib/mode.coffee index ce4b06f..d2df0a8 100644 --- a/lib/mode.coffee +++ b/lib/mode.coffee @@ -175,10 +175,10 @@ buildCargoArguments = (linter, cargoManifestPath) -> cargoArgs = switch linter.cargoCommand when 'check' then ['check'] - when 'check all' then ['check', '--all'] + when 'check all' then ['check', '--all', '--all-targets'] when 'check tests' then ['check', '--tests'] when 'test' then ['test', '--no-run'] - when 'test all' then ['test', '--no-run', '--all'] + when 'test all' then ['test', '--no-run', '--all', '--all-targets'] when 'rustc' then ['rustc', '--color', 'never'] when 'clippy' then ['clippy'] when 'clippy all' then ['clippy', '--workspace', '--all-targets']