Use unused results
This commit is contained in:
parent
4641236c82
commit
bd4c89af3b
2 changed files with 5 additions and 5 deletions
|
@ -252,10 +252,10 @@ fn fetch_config(rtp: &PathBuf) -> Result<Value> {
|
||||||
let mut parser = Parser::new(&content[..]);
|
let mut parser = Parser::new(&content[..]);
|
||||||
let res = parser.parse();
|
let res = parser.parse();
|
||||||
if res.is_none() {
|
if res.is_none() {
|
||||||
write!(stderr(), "Config file parser error:");
|
write!(stderr(), "Config file parser error:").ok();
|
||||||
for error in parser.errors {
|
for error in parser.errors {
|
||||||
write!(stderr(), "At [{}][{}] <> {}", error.lo, error.hi, error);
|
write!(stderr(), "At [{}][{}] <> {}", error.lo, error.hi, error).ok();
|
||||||
write!(stderr(), "in: '{}'", &content[error.lo..error.hi]);
|
write!(stderr(), "in: '{}'", &content[error.lo..error.hi]).ok();
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -93,8 +93,8 @@ impl<'a> Runtime<'a> {
|
||||||
};
|
};
|
||||||
|
|
||||||
if is_debugging {
|
if is_debugging {
|
||||||
write!(stderr(), "Config: {:?}\n", cfg);
|
write!(stderr(), "Config: {:?}\n", cfg).ok();
|
||||||
write!(stderr(), "Store-config: {:?}\n", store_config);
|
write!(stderr(), "Store-config: {:?}\n", store_config).ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
Store::new(storepath, store_config).map(|mut store| {
|
Store::new(storepath, store_config).map(|mut store| {
|
||||||
|
|
Loading…
Reference in a new issue