Skip to content

Commit cce4544

Browse files
committed
util: Ignore unused variable warning
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 7633da1 commit cce4544

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

framework_lib/src/util.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ pub enum Platform {
3636

3737
#[derive(Debug)]
3838
pub struct Config {
39-
pub verbose: bool,
39+
// TODO: Actually set and read this
40+
pub _verbose: bool,
4041
pub platform: Platform,
4142
}
4243

@@ -49,7 +50,7 @@ impl Config {
4950

5051
if (*config).is_none() {
5152
*config = Some(Config {
52-
verbose: false,
53+
_verbose: false,
5354
platform,
5455
});
5556
}
@@ -76,7 +77,7 @@ impl Config {
7677
// get_platform will call Config::get() recursively,
7778
// can't hold the lock when calling it
7879
smbios::get_platform().map(|platform| Config {
79-
verbose: false,
80+
_verbose: false,
8081
platform,
8182
})
8283
} else {

0 commit comments

Comments
 (0)