这是我对cargo check
的第一次调用:
$ cargo check
Updating crates.io index
Compiling num-traits v0.2.6
Compiling num-integer v0.1.39
Compiling num-iter v0.1.37
Checking byteorder v1.2.6
Checking adler32 v1.0.3
Checking bitflags v1.0.4
Checking bit-vec v0.5.0
Checking libc v0.2.43
Checking inflate v0.4.3
Checking deflate v0.7.19
Checking png v0.12.0
Checking cargo_check_test v0.1.0 (/tmp/cargo_check_test)
warning: unused import: `std::path::Path`
--> src/main.rs:11:5
|
11 | use std::path::Path;
| ^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
Finished dev [unoptimized + debuginfo] target(s) in 11.30s
这是第二个:
$ cargo check
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
是否有一种方法可以使cargo check
总是向我显示所有警告,而不仅仅是第一次尝试?