File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change
1
+ disallowed-methods = [
2
+ { path = " std::env::var" , reason = " Use `Config::get_env` instead. See rust-lang/cargo#11588" },
3
+ { path = " std::env::var_os" , reason = " Use `Config::get_env_os` instead. See rust-lang/cargo#11588" },
4
+ { path = " std::env::vars" , reason = " Not recommended to use in Cargo. See rust-lang/cargo#11588" },
5
+ { path = " std::env::vars_os" , reason = " Not recommended to use in Cargo. See rust-lang/cargo#11588" },
6
+ ]
Original file line number Diff line number Diff line change 1
1
#![ warn( rust_2018_idioms) ] // while we're getting used to 2018
2
2
#![ allow( clippy:: all) ]
3
+ #![ warn( clippy:: disallowed_methods) ]
3
4
4
5
use cargo:: util:: toml:: StringOrVec ;
5
6
use cargo:: util:: CliError ;
Original file line number Diff line number Diff line change 4
4
// Due to some of the default clippy lints being somewhat subjective and not
5
5
// necessarily an improvement, we prefer to not use them at this time.
6
6
#![ allow( clippy:: all) ]
7
+ #![ warn( clippy:: disallowed_methods) ]
7
8
#![ warn( clippy:: self_named_module_files) ]
8
9
#![ allow( rustdoc:: private_intra_doc_links) ]
9
10
You can’t perform that action at this time.
0 commit comments