mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
13 lines
253 B
Rust
13 lines
253 B
Rust
// run-rustfix
|
|
#![allow(unused_must_use)]
|
|
#![warn(clippy::create_dir)]
|
|
|
|
fn not_create_dir() {}
|
|
|
|
fn main() {
|
|
std::fs::create_dir_all("foo");
|
|
std::fs::create_dir_all("bar").unwrap();
|
|
|
|
not_create_dir();
|
|
std::fs::create_dir_all("foobar");
|
|
}
|