rust-clippy/tests/ui/create_dir.fixed
2020-08-28 18:45:28 +09:00

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");
}