Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-dd committed Jun 26, 2024
1 parent ed8b2e4 commit d0be01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/datadog/grok/matchers/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ mod tests {
let now = Utc::now();
let expected_datetime = NaiveDate::from_ymd_opt(now.year(), now.month(), now.day())
.unwrap()
.and_hms_opt(12, 03, 42)
.and_hms_opt(12, 3, 42)
.unwrap();
// make sure we can parse the date with the expected result
assert_eq!(
Expand All @@ -435,7 +435,7 @@ mod tests {
let now = Utc::now();
let expected_datetime = NaiveDate::from_ymd_opt(now.year(), 3, 25)
.unwrap()
.and_hms_opt(12, 03, 42)
.and_hms_opt(12, 3, 42)
.unwrap();
// make sure we can parse the date with the expected result
assert_eq!(
Expand Down
2 changes: 1 addition & 1 deletion src/datadog/grok/parse_grok.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ mod tests {

if v.is_ok() {
assert_eq!(
parsed.expect(&format!("{filter} does not match {k}")),
parsed.unwrap_or_else(|_| panic!("{filter} does not match {k}")),
Value::from(btreemap! {
"field" => v.unwrap(),
})
Expand Down

0 comments on commit d0be01d

Please sign in to comment.