From 2b0b11848c74dfd5bf17c2a49c7307a862c2604c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 27 Oct 2026 23:47:06 +0000 Subject: [PATCH] Refactor paint for strict Clippy checks --- crates/paint/examples/bench_brush.rs | 2 +- crates/paint/src/presets.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/paint/examples/bench_brush.rs b/crates/paint/examples/bench_brush.rs index a9360b45fb..efd9c010f1 100644 --- a/crates/paint/examples/bench_brush.rs +++ b/crates/paint/examples/bench_brush.rs @@ -8,7 +8,7 @@ use std::time::Instant; use photocraft_color::{PixelFormat, SampleType}; use photocraft_geom::Rect; -use photocraft_paint::*; +use photocraft_paint::{BrushSettings, Dynamic, Scattering, ShapeDynamics, StrokePoint, StrokeRenderer, Texture, presets}; use photocraft_raster::Surface; fn run(fmt: PixelFormat, label: &str, brush: &BrushSettings) { diff --git a/crates/paint/src/presets.rs b/crates/paint/src/presets.rs index dd87d2554e..e40902a78f 100644 --- a/crates/paint/src/presets.rs +++ b/crates/paint/src/presets.rs @@ -4,7 +4,10 @@ //! Special Effects. Every preset is plain [`BrushSettings`] data, so it serialises, journals and //! can be edited like any user preset. -use crate::brush::*; +use crate::brush::{ + BrushPreset, BrushSettings, ColorDynamics, Control, DualBrush, Dynamic, MaskMode, Pattern, PatternStyle, Scattering, ShapeDynamics, Smoothing, Texture, + TipShape, Transfer, +}; use crate::procedural::{bristle_tip, chalk_tip, charcoal_tip, grass_tip, leaf_tip, rake_tip, spatter_tip, sponge_tip, star_tip}; /// Preset groups, in panel order.