]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // run-rustfix |
2 | #![allow(unused_must_use)] | |
3 | #![warn(clippy::create_dir)] | |
4 | ||
5 | use std::fs::create_dir_all; | |
6 | ||
7 | fn create_dir() {} | |
8 | ||
9 | fn main() { | |
10 | // Should be warned | |
11 | create_dir_all("foo"); | |
12 | create_dir_all("bar").unwrap(); | |
13 | ||
14 | // Shouldn't be warned | |
15 | create_dir(); | |
16 | std::fs::create_dir_all("foobar"); | |
17 | } |