Skip to content

Commit

Permalink
chore(es): small syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etolbakov authored Jul 12, 2024
1 parent 59e1327 commit a674c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quickwit/quickwit-query/src/elastic_query_dsl/range_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mod tests {
use crate::JsonLiteral;

#[test]
fn test_parse_and_convert() {
fn test_parse_and_convert() -> anyhow::Result<()> {
let parser = StrptimeParser::from_str("%Y-%m-%d %H:%M:%S").unwrap();

// valid datetime
Expand All @@ -142,5 +142,7 @@ mod tests {
let input = JsonLiteral::Number(27.into());
let result = parse_and_convert(input.clone(), &parser)?;
assert_eq!(result, input);

Ok(())
}
}

0 comments on commit a674c93

Please sign in to comment.