Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nickray committed Jan 2, 2022
1 parent 0491dcf commit 6ce1a3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/secure_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,7 @@ impl Version {
pub fn minor_as_date(&self) -> NaiveDate {
use chrono::Duration;
let epoch = NaiveDate::from_ymd(2020, 1, 1);
let date = epoch + Duration::days(self.minor as _);
date
epoch + Duration::days(self.minor as _)
}

/// For end-user consumption.
Expand Down

0 comments on commit 6ce1a3b

Please sign in to comment.