You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
Clippy fixes
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ impl Display for ParseDurationError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
ParseDurationError::InvalidRegex(err) => {
|
||||
write!(f, "Invalid regex for time pattern: {}", err)
|
||||
write!(f, "Invalid regex for time pattern: {err}")
|
||||
}
|
||||
ParseDurationError::InvalidInput => {
|
||||
write!(
|
||||
@@ -265,7 +265,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_invalid_input() {
|
||||
let result = from_str("foobar");
|
||||
println!("{:?}", result);
|
||||
println!("{result:?}");
|
||||
match result {
|
||||
Err(ParseDurationError::InvalidInput) => assert!(true),
|
||||
_ => assert!(false),
|
||||
|
||||
Reference in New Issue
Block a user