From 56c27e98e4fc2bd719d26abaa98a7628c395b9c0 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Wed, 6 Apr 2022 16:17:57 +0800 Subject: [PATCH] config: add "fat_lfn" feature --- libconfig/Cargo.toml | 1 + libconfig/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libconfig/Cargo.toml b/libconfig/Cargo.toml index a490764..43ea995 100644 --- a/libconfig/Cargo.toml +++ b/libconfig/Cargo.toml @@ -16,3 +16,4 @@ target_coraz7 = [] target_redpitaya = [] target_kasli_soc = [] ipv6 = [] +fat_lfn = [ "fatfs/alloc" ] \ No newline at end of file diff --git a/libconfig/src/lib.rs b/libconfig/src/lib.rs index 02dd734..f1bf1b1 100644 --- a/libconfig/src/lib.rs +++ b/libconfig/src/lib.rs @@ -164,7 +164,7 @@ impl Config { f.seek(SeekFrom::End(0))?; write!(f, "{}={}\n", key, String::from_utf8(value).unwrap())?; } else { - let mut dir = root_dir.create_dir("/CONFIG")?; + let dir = root_dir.create_dir("/CONFIG")?; let mut f = dir.create_file(&[key, ".BIN"].concat())?; f.write_all(&value)?; }