1.57.0 lints (#2850)

## Issue Addressed

New rust lints

## Proposed Changes

- Boxing some enum variants
- removing some unused fields (is the validator lockfile unused? seemed so to me)

## Additional Info

- some error fields were marked as dead code but are logged out in areas
- left some dead fields in our ef test code because I assume they are useful for debugging?

Co-authored-by: realbigsean <seananderson33@gmail.com>
This commit is contained in:
realbigsean
2021-12-03 04:44:30 +00:00
parent f3c237cfa0
commit a80ccc3a33
22 changed files with 64 additions and 56 deletions

View File

@@ -11,7 +11,7 @@ use std::path::{Path, PathBuf};
/// outage) caused the lockfile not to be deleted.
#[derive(Debug)]
pub struct Lockfile {
file: File,
_file: File,
path: PathBuf,
file_existed: bool,
}
@@ -43,7 +43,7 @@ impl Lockfile {
_ => LockfileError::IoError(path.clone(), e),
})?;
Ok(Self {
file,
_file: file,
path,
file_existed,
})