Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
999eagle authored and meain committed Jan 14, 2021
1 parent baa4b0c commit 1396c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Date {
DateFlag::ISO => {
// 365.2425 * 24 * 60 * 60 = 31556952 seconds per year
// 15778476 seconds are 6 months
if self.0 > Local::now() - Duration::seconds(15778476) {
if self.0 > Local::now() - Duration::seconds(15_778_476) {
self.0.format("%m-%d %R").to_string()
} else {
self.0.format("%F").to_string()
Expand Down

0 comments on commit 1396c59

Please sign in to comment.