Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Browser: derive Default for rows (clippy)

bherbruck441b36ce74b1
diff --git a/crates/ui-egui/src/browser.rs b/crates/ui-egui/src/browser.rs
index fcb280c81c..0d8712c5e9 100644
--- a/crates/ui-egui/src/browser.rs
+++ b/crates/ui-egui/src/browser.rs
@@ -100,6 +100,7 @@ const ROW_H: f32 = 22.0;
const INDENT: f32 = 14.0;
/// One row's look.
+#[derive(Default)]
struct Row<'a> {
depth: usize,
/// Some(open) for rows that fold.
@@ -117,12 +118,6 @@ struct Row<'a> {
badges: &'a [&'a str],
}
-impl Default for Row<'_> {
- fn default() -> Self {
- Row { depth: 0, fold: None, eye: None, icon: "", label: "", selected: false, dim: false, color: None, radio: None, badges: &[] }
- }
-}
-
/// What happened on a row.
#[derive(Default)]
struct RowResp {