Do not print to stderr when parsing the toml file succeeded
This commit is contained in:
parent
30abfd65a2
commit
7229b26f14
@ -372,7 +372,7 @@ fn fill_from_parsed_config(mut self, parsed: PartialConfig) -> Config {
|
||||
self.$i.2 = val;
|
||||
} else {
|
||||
eprintln!("Warning: can't set `{} = {:?}`, unstable features are only \
|
||||
available in nightly channel.", stringify!($i), val);
|
||||
available in nightly channel.", stringify!($i), val);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -404,7 +404,9 @@ pub fn from_toml(toml: &str) -> Result<Config, String> {
|
||||
}
|
||||
match parsed.try_into() {
|
||||
Ok(parsed_config) => {
|
||||
eprintln!("{}", err);
|
||||
if !err.is_empty() {
|
||||
eprint!("{}", err);
|
||||
}
|
||||
Ok(Config::default().fill_from_parsed_config(parsed_config))
|
||||
}
|
||||
Err(e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user