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::snapshot::{compute_patch_set, InstanceSnapshot, RojoTree};
#[test]
fn set_name_and_class_name() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let tree = empty_tree();
redactions.intern(tree.get_root_id());
@ -31,7 +31,7 @@ fn set_name_and_class_name() {
#[test]
fn set_property() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let tree = empty_tree();
redactions.intern(tree.get_root_id());
@ -53,7 +53,7 @@ fn set_property() {
#[test]
fn remove_property() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let mut tree = empty_tree();
redactions.intern(tree.get_root_id());
@ -84,7 +84,7 @@ fn remove_property() {
#[test]
fn add_child() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let tree = empty_tree();
redactions.intern(tree.get_root_id());
@ -113,7 +113,7 @@ fn add_child() {
#[test]
fn remove_child() {
let mut redactions = RedactionMap::new();
let mut redactions = RedactionMap::default();
let mut tree = empty_tree();
redactions.intern(tree.get_root_id());