Fix clippy lint warnings (#1004)

This commit is contained in:
Jack T 2025-01-13 10:07:53 -08:00 • committed by GitHub
parent f33d1f1cc4
commit 55a207a275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 69 additions and 76 deletions

View file

@ -9,7 +9,7 @@ use crate::{
#[test]
fn set_name_and_class_name() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let mut tree = empty_tree();
intern_tree(&tree, &mut redactions);
@ -36,7 +36,7 @@ fn set_name_and_class_name() {
#[test]
fn add_property() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let mut tree = empty_tree();
intern_tree(&tree, &mut redactions);
@ -63,7 +63,7 @@ fn add_property() {
#[test]
fn remove_property() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let mut tree = empty_tree();
intern_tree(&tree, &mut redactions);
@ -85,7 +85,7 @@ fn remove_property() {
id: tree.get_root_id(),
changed_name: None,
changed_class_name: None,
changed_properties: [("Foo".to_owned(), None).into()].into(),
changed_properties: [("Foo".to_owned(), None)].into(),
changed_metadata: None,
}],
..Default::default()