Skip to content

Commit 586d81e

Browse files
default instead of new
1 parent fc39896 commit 586d81e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/alerts/alert_structs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Conditions {
232232
.collect();
233233

234234
match all_parts.len() {
235-
0 => String::new(),
235+
0 => String::default(),
236236
1 => all_parts[0].to_string(),
237237
_ => format!("[{}]", all_parts.join(&separator)),
238238
}

0 commit comments

Comments
 (0)