Skip to content

Commit b0e85be

Browse files
committed
clippy
1 parent 0c8f785 commit b0e85be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webserver/database/sql_to_json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ line2' as multiline_string
672672

673673
let expected_json = serde_json::json!({
674674
"null_col": null,
675-
"empty_string": if empty_str_is_null { serde_json::Value::Null } else { serde_json::Value::String("".to_string()) },
675+
"empty_string": if empty_str_is_null { serde_json::Value::Null } else { serde_json::Value::String(String::new()) },
676676
"zero_value": 0,
677677
"negative_int": -42,
678678
"my_float": 1.23456,

0 commit comments

Comments
 (0)