Add explanation for inner attribute

This commit is contained in:
bishtpawan 2020-03-24 17:11:04 +05:30
parent 10226daa4e
commit 150916047b

View File

@ -1,13 +1,27 @@
An unknown tool name found in scoped lint
Erroneous code example:
Erroneous code examples:
```compile_fail,E0710
#[allow(clipp::filter_map)] // error!`
fn main() {
/**
*business logic
*/
// business logic
}
```
```compile_fail,E0710
#[warn(clipp::filter_map)] // error!`
fn main() {
// business logic
}
```
```compile_fail,E0710
fn main() {
#![deny(clipp::filter_map)] //error!
fn filter() {
//logic
}
}
```
@ -17,8 +31,22 @@ forget to import it in you project:
```
#[allow(clippy::filter_map)] // ok!
fn main() {
/**
*business logic
*/
// business logic
}
```
```
#[warn(clippy::filter_map)] // ok!
fn main() {
// business logic
}
```
```
fn main() {
#![deny(clippy::filter_map)] // ok!
fn filter() {
//logic
}
}
```