From 29dd311c0fc0f0709722b31412714362938b4866 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 29 Jun 2020 10:00:13 +0800 Subject: [PATCH] Runtime config: fixed warning --- src/runtime/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/src/config.rs b/src/runtime/src/config.rs index 55b9d59..05631b5 100644 --- a/src/runtime/src/config.rs +++ b/src/runtime/src/config.rs @@ -81,7 +81,7 @@ impl Config { let root_dir = self.fs.root_dir(); let mut buffer: Vec = 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)),