Runtime config: fixed warning

pull/22/head
pca006132 2020-06-29 10:00:13 +08:00
parent 64cdf0ade3
commit 11a98919a5
Signed by untrusted user: pca006132
GPG Key ID: 16997BD76CECCA4C
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ impl Config {
let root_dir = self.fs.root_dir();
let mut buffer: Vec<u8> = Vec::new();
match root_dir.open_file(&["/CONFIG/", key, ".BIN"].concat()) {
Ok(mut f) => f.read_to_end(&mut buffer).map(|v| ())?,
Ok(mut f) => f.read_to_end(&mut buffer).map(|_| ())?,
Err(_) => match root_dir.open_file("/CONFIG.TXT") {
Ok(f) => parse_config(key, &mut buffer, f)?,
Err(_) => return Err(Error::KeyNotFoundError(key)),