Skip to content

Commit 443cf1e

Browse files
committed
Fix lint
1 parent b5a64dc commit 443cf1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/vespera_macro/src/openapi_generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,11 @@ pub fn get_users() -> String {
877877

878878
#[test]
879879
fn test_extract_value_from_expr_float() {
880-
let expr: syn::Expr = syn::parse_str("3.14").unwrap();
880+
let expr: syn::Expr = syn::parse_str("12.34").unwrap();
881881
let value = extract_value_from_expr(&expr);
882882
assert!(value.is_some());
883883
if let Some(serde_json::Value::Number(n)) = value {
884-
assert!((n.as_f64().unwrap() - 3.14).abs() < 0.001);
884+
assert!((n.as_f64().unwrap() - 12.34).abs() < 0.001);
885885
}
886886
}
887887

0 commit comments

Comments
 (0)