Skip to content

Commit ac52323

Browse files
author
bors-servo
authored
Auto merge of rust-lang#1189 - nox:is-dir, r=fitzgen
Use Metadata::is_dir
2 parents e8d5230 + 13a78db commit ac52323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ impl Bindings {
16091609

16101610
if let Some(h) = options.input_header.as_ref() {
16111611
if let Ok(md) = std::fs::metadata(h) {
1612-
if !md.is_file() {
1612+
if md.is_dir() {
16131613
eprintln!("error: '{}' is a folder", h);
16141614
return Err(());
16151615
}

0 commit comments

Comments
 (0)