diff --git a/crates/algo/src/smart_blur_tests.rs b/crates/algo/src/smart_blur_tests.rs index b1f37b1f7e..505764e42e 100644 --- a/crates/algo/src/smart_blur_tests.rs +++ b/crates/algo/src/smart_blur_tests.rs @@ -1,6 +1,6 @@ //! The pre-#7921 Smart Blur (every neighbour read per channel through `Image::get`) stays as an //! exact oracle: the offset fast path must give the same bits for every mode, depth and layout. -use super::{native, ncol, smart_blur, unpremul_px, xy, BlurQuality, Ctx, Image, Rect, SmartBlurMode, MAXC}; +use super::{BlurQuality, Ctx, Image, MAXC, Rect, SmartBlurMode, native, ncol, smart_blur, unpremul_px, xy}; use photocraft_color::ColorMode; #[allow(clippy::too_many_arguments)] diff --git a/crates/compose/src/lib.rs b/crates/compose/src/lib.rs index 21aceac983..40f4e04be0 100644 --- a/crates/compose/src/lib.rs +++ b/crates/compose/src/lib.rs @@ -2340,8 +2340,7 @@ fn build_fx_slot_maps(layer: &Layer, region: Rect, key: u64, cx: &Ctx, slot: &Fx let mut pin = Vec::new(); layer_identity(layer, &mut std::collections::hash_map::DefaultHasher::new(), &mut |t| pin.push(std::sync::Arc::downgrade(t))); // The maps, plus what each reserved tile address keeps allocated. - let bytes = - maps.bytes().saturating_add(pin.len().saturating_mul(std::mem::size_of::() + 2 * std::mem::size_of::())); + let bytes = maps.bytes().saturating_add(pin.len().saturating_mul(std::mem::size_of::() + 2 * std::mem::size_of::())); let maps = std::sync::Arc::new(maps); if slot.set(FxEntry { maps: maps.clone(), _pin: pin, bytes }).is_ok() { // Counted exactly once, by the build that filled the slot, and only while the diff --git a/crates/engine/src/atn_cmds/layer_props_tests.rs b/crates/engine/src/atn_cmds/layer_props_tests.rs index 4743163340..25154cf611 100644 --- a/crates/engine/src/atn_cmds/layer_props_tests.rs +++ b/crates/engine/src/atn_cmds/layer_props_tests.rs @@ -1,7 +1,7 @@ use photocraft_psd::atn; use serde_json::json; -use super::{enm, export, export_item, get_obj, layer_ref, pct, text, trimmed, Action, Session, Skipped}; +use super::{Action, Session, Skipped, enm, export, export_item, get_obj, layer_ref, pct, text, trimmed}; /// PhotoCraft's own roundtrip accepts a combined Set, but Photoshop applies only its rename. #[test] diff --git a/crates/format/src/store/durability_tests.rs b/crates/format/src/store/durability_tests.rs index cf75e25963..477c476a99 100644 --- a/crates/format/src/store/durability_tests.rs +++ b/crates/format/src/store/durability_tests.rs @@ -7,7 +7,7 @@ use std::sync::Arc; use photocraft_color::{ColorMode, SampleType}; use photocraft_doc::{Document, Layer, Size}; -use super::{list_objects, PcraftWriter, SaveOptions, MANIFEST}; +use super::{MANIFEST, PcraftWriter, SaveOptions, list_objects}; use crate::atomic::{AtomicFs, RealFs}; /// The object or manifest directory barrier at which to inject one publication failure. diff --git a/crates/ui-egui/src/camera_raw_identity_tests.rs b/crates/ui-egui/src/camera_raw_identity_tests.rs index c41213a075..b7b0999e4e 100644 --- a/crates/ui-egui/src/camera_raw_identity_tests.rs +++ b/crates/ui-egui/src/camera_raw_identity_tests.rs @@ -2,9 +2,9 @@ use std::sync::Arc; -use serde_json::{json, Value}; +use serde_json::{Value, json}; -use super::{commit_open_raw, finish_redevelop, queue_open_dialog, replace_raw_document, CameraRaw, PhotocraftApp, RawOpen}; +use super::{CameraRaw, PhotocraftApp, RawOpen, commit_open_raw, finish_redevelop, queue_open_dialog, replace_raw_document}; fn synthetic_raw() -> Vec { use photocraft_raw::testgen::{DngSpec, mosaic, scene}; diff --git a/crates/ui-egui/src/layer_style.rs b/crates/ui-egui/src/layer_style.rs index 37546d772d..73694df157 100644 --- a/crates/ui-egui/src/layer_style.rs +++ b/crates/ui-egui/src/layer_style.rs @@ -643,7 +643,7 @@ fn validate_params(f: &Map) -> Result<(), String> { Ok(()) } -fn effect_entry(e: &Map, kind: &str, mut params: Value, initial_light_angle: Option) -> Value { +fn effect_entry(e: &Value, kind: &str, mut params: Value, initial_light_angle: Option) -> Value { match e.get("fx").filter(|fx| fx.is_object()) { Some(fx) => { if kind == "bevelEmboss"