Skip to content

Commit

Permalink
Skip: fix unnecessary_cast src/cli timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstero committed May 10, 2024
1 parent 9b15738 commit f186885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn parse_duration(s: &str) -> Result<u64, &'static str> {
"d" => (Duration::from_secs(num as u64 * 60 * 60 * 24)).as_secs(),
_ => unreachable!(),
};
Ok(timestamp as u64)
Ok(timestamp)
} else {
Err("invalid duration")
}
Expand Down

0 comments on commit f186885

Please sign in to comment.