Skip to content

Commit

Permalink
Remove unnecessary as_file conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Konka authored and kubkon committed May 2, 2020
1 parent 4396fe8 commit a73c72d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/wasi-common/src/sys/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pub(crate) fn get_file_type(file: &File) -> io::Result<types::Filetype> {
types::Filetype::CharacterDevice
} else if file_type.is_disk() {
// disk file: file, dir or disk device
let file = file.as_file()?;
let meta = file.metadata()?;
if meta.is_dir() {
types::Filetype::Directory
Expand Down

0 comments on commit a73c72d

Please sign in to comment.