Skip to content

Commit ba3f601

Browse files
cooperleesCopilot
andauthored
Update src/dbus_stats.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 263deb1 commit ba3f601

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dbus_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ mod tests {
598598
// When user_stats=true, empty array should return Some(empty map)
599599
cfg.dbus_stats.user_stats = true;
600600
let empty_val = Value::Array(Array::from(Vec::<Value>::new()));
601-
let owned = OwnedValue::try_from(empty_val).unwrap();
601+
let owned = OwnedValue::try_from(empty_val).expect("should convert empty array");
602602
let parsed = parse_user_accounting(&cfg, &owned).expect("should parse empty");
603603
assert_eq!(parsed.len(), 0);
604604

0 commit comments

Comments
 (0)