mirror of
https://github.com/trussed-dev/littlefs2.git
synced 2026-06-20 04:16:32 -07:00
- Remove use-statement from previous commit.
- Add changelog entry.
This commit is contained in:
committed by
Robin Krahl
parent
a3ec29efba
commit
8019e8ad6d
@@ -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
|
||||
|
||||
|
||||
@@ -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<ll::lfs_info> 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!(); }
|
||||
|
||||
Reference in New Issue
Block a user