chore: fix clippy lints; format
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib3d98a81c7e41054d27e617394bef63c6a6a6964
This commit is contained in:
parent
489e55d0b4
commit
ad6d0b646f
3 changed files with 9 additions and 9 deletions
|
|
@ -27,11 +27,10 @@ impl TempFileGuard {
|
|||
|
||||
impl Drop for TempFileGuard {
|
||||
fn drop(&mut self) {
|
||||
if self.0.exists() {
|
||||
if let Err(e) = std::fs::remove_file(&self.0) {
|
||||
if self.0.exists()
|
||||
&& let Err(e) = std::fs::remove_file(&self.0) {
|
||||
warn!("failed to clean up temp file {}: {e}", self.0.display());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue