Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
- the following explicit lifetimes could be elided
  • Loading branch information
iwanbk committed Nov 29, 2024
1 parent bab88aa commit fb9a44e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zstor/src/encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<'de> Deserialize<'de> for SymmetricKey {

struct SymKeyVisitor;

impl<'de> Visitor<'de> for SymKeyVisitor {
impl Visitor<'_> for SymKeyVisitor {
type Value = SymmetricKey;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion zstor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ impl<'a> DropFile<'a> {
}
}

impl<'a> Drop for DropFile<'a> {
impl Drop for DropFile<'_> {
fn drop(&mut self) {
// try to remove the file
if let Err(e) = fs::remove_file(self.path) {
Expand Down

0 comments on commit fb9a44e

Please sign in to comment.