Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adrien Guillo <[email protected]>
  • Loading branch information
fmassot and guilload authored Oct 22, 2023
1 parent 1f95598 commit 95c2201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-datetime/src/date_time_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl StrptimeParser {
.is_empty()
{
anyhow::bail!(
"The date time string `{}` does not match the format `{}`.",
"datetime string `{}` does not match format `{}`",
date_time_str,
self.borrow_strptime_format()
);
Expand Down Expand Up @@ -450,7 +450,7 @@ mod tests {
let error_str = parser.parse_date_time("2021-01-01TABC").unwrap_err();
assert_eq!(
error_str,
"The date time string `2021-01-01TABC` does not match the format `%Y-%m-%d`."
"datetime string `2021-01-01TABC` does not match format `%Y-%m-%d`"
);
}
}

0 comments on commit 95c2201

Please sign in to comment.