mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-22 20:53:21 +00:00
s/Clippy.toml/clippy.toml
This commit is contained in:
parent
aa4daea364
commit
14dcb60bf8
2 changed files with 3 additions and 3 deletions
|
@ -236,7 +236,7 @@ And, in your `main.rs` or `lib.rs`:
|
|||
```
|
||||
|
||||
## Configuration
|
||||
Some lints can be configured in a `Clippy.toml` file. It contains basic `variable = value` mapping eg.
|
||||
Some lints can be configured in a `clippy.toml` file. It contains basic `variable = value` mapping eg.
|
||||
|
||||
```toml
|
||||
blacklisted-names = ["toto", "tata", "titi"]
|
||||
|
|
|
@ -114,12 +114,12 @@ mod reexport {
|
|||
pub fn plugin_registrar(reg: &mut Registry) {
|
||||
let conf = match utils::conf::conf_file(reg.args()) {
|
||||
Ok(file_name) => {
|
||||
// if the user specified a file, it must exist, otherwise default to `Clippy.toml` but
|
||||
// if the user specified a file, it must exist, otherwise default to `clippy.toml` but
|
||||
// do not require the file to exist
|
||||
let (ref file_name, must_exist) = if let Some(ref file_name) = file_name {
|
||||
(&**file_name, true)
|
||||
} else {
|
||||
("Clippy.toml", false)
|
||||
("clippy.toml", false)
|
||||
};
|
||||
|
||||
let (conf, errors) = utils::conf::read_conf(&file_name, must_exist);
|
||||
|
|
Loading…
Reference in a new issue