diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a7676a9..06117e2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Fixed - Fixed macro hygiene for `path!`. +- Fixed build error that would occur on Windows systems. ## [v0.4.0] - 2023-02-07 diff --git a/src/fs.rs b/src/fs.rs index 43be2230..31db5d01 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -5,7 +5,6 @@ use core::{cell::RefCell, cmp, mem, slice}; use bitflags::bitflags; use generic_array::typenum::marker_traits::Unsigned; use littlefs2_sys as ll; -use ll::lfs_type; use serde::{Deserialize, Serialize}; // so far, don't need `heapless-bytes`. @@ -209,7 +208,7 @@ impl Metadata impl From for Metadata { fn from(info: ll::lfs_info) -> Self { - let file_type = match info.type_ as lfs_type { + let file_type = match info.type_ as ll::lfs_type { ll::lfs_type_LFS_TYPE_DIR => FileType::Dir, ll::lfs_type_LFS_TYPE_REG => FileType::File, _ => { unreachable!(); }