Add a test for #2067

This commit is contained in:
topecongiro 2017-10-18 22:02:05 +09:00
parent 0d359eacd7
commit 8b7defdb19
2 changed files with 15 additions and 0 deletions

View File

@ -163,3 +163,10 @@ fn issue1392() {
}
"#.trim());
}
// #2067
impl Settings {
fn save(&self) -> Result<()> {
let mut file = File::create(&settings_path).chain_err(|| ErrorKind::WriteError(settings_path.clone()))?;
}
}

View File

@ -183,3 +183,11 @@ fn issue1392() {
"#.trim(),
);
}
// #2067
impl Settings {
fn save(&self) -> Result<()> {
let mut file = File::create(&settings_path)
.chain_err(|| ErrorKind::WriteError(settings_path.clone()))?;
}
}