From 634ec16c5e627d598aaccf130974224ba76b0e13 Mon Sep 17 00:00:00 2001 From: Rbanh Date: Wed, 22 Jul 2026 17:23:45 -0400 Subject: [PATCH] test(editor): satisfy strict thumbnail cache lint --- crates/editor/src/assets/thumbnails/disk_cache.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/editor/src/assets/thumbnails/disk_cache.rs b/crates/editor/src/assets/thumbnails/disk_cache.rs index 0cf8212..c71cd38 100644 --- a/crates/editor/src/assets/thumbnails/disk_cache.rs +++ b/crates/editor/src/assets/thumbnails/disk_cache.rs @@ -633,8 +633,10 @@ mod tests { fs::create_dir_all(texture_path.parent().unwrap()).unwrap(); fs::write(&material_path, b"material").unwrap(); fs::write(&texture_path, b"first pixels").unwrap(); - let mut material = shared::MaterialDesc::default(); - material.base_color_texture = Some("assets/textures/albedo.png".into()); + let material = shared::MaterialDesc { + base_color_texture: Some("assets/textures/albedo.png".into()), + ..Default::default() + }; let source = ThumbnailJobSource::MaterialAsset { source_path: "assets/materials/test.material.ron".into(), label: "Test".into(),