blob: 8fbf7dd19b83b42b38d4c768bb3c316451482bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![allow(unused_must_use)]
#![warn(clippy::create_dir)]
use std::fs::create_dir_all;
fn create_dir() {}
fn main() {
// Should be warned
create_dir_all("foo");
create_dir_all("bar").unwrap();
// Shouldn't be warned
create_dir();
std::fs::create_dir_all("foobar");
}
|