Inherit lint level from parents

This commit is contained in:
Guillaume Gomez
2020-10-08 18:05:01 +02:00
parent 02e6b861eb
commit b31f5d05b1
3 changed files with 27 additions and 25 deletions

View File

@@ -29,3 +29,11 @@ pub fn this_is_func() {}
pub struct DemoStruct {
something: usize,
}
#[allow(missing_docs)]
pub mod bar {
#[warn(missing_docs)]
pub struct Bar { //~ WARN
pub f: u32, //~ WARN
}
}