mirror of
https://github.com/nivekuil/rip
synced 2024-09-20 14:01:55 +00:00
Return instead of panic on writeln
This commit is contained in:
parent
e6ba6a5f3b
commit
ccdd3d0c00
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ fn delete_lines_from_record<R: AsRef<Path>>(record: R, graves: &[String])
|
|||
};
|
||||
let mut f = fs::File::create(record)?;
|
||||
for line in lines_to_write {
|
||||
writeln!(f, "{}", line).unwrap();
|
||||
writeln!(f, "{}", line)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue