design-lint: rustfmt the files of the contract fixes

This commit is contained in:
aiongg
2026-11-16 13:25:07 +00:00
parent f6ac586b18
commit d580ecfc16
5 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -80,7 +80,9 @@ pub use zoom_motion::{HoldZoom, ZoomAnimation, ZoomDrag, easing_view};
mod rulers;
mod scrollbars;
pub use rulers::{INCH_EIGHTHS, INCH_SIXTEENTHS, LABEL_STEP_MIN, RulerCommands, RulerMargins, RulerPart, RulerTick, Rulers, RulersOutput, StepLadder, TickRule};
pub use rulers::{
INCH_EIGHTHS, INCH_SIXTEENTHS, LABEL_STEP_MIN, RulerCommands, RulerMargins, RulerPart, RulerTick, Rulers, RulersOutput, StepLadder, TickRule,
};
pub use scrollbars::{CanvasScrollbars, CanvasScrollbarsOutput};
// canvas-navigator-a
+2 -1
View File
@@ -24,7 +24,8 @@ use super::{AppPaint, PixelRect, RasterSource, canvas_space};
use crate::contract::{Access, Common, Component, Cx, NoValue, Outcome, PaintUi, Props as _, Role};
use crate::primitives::textures::UNTINTED;
use crate::primitives::{
CachedTexture, Checker, CheckerArea, Draw, PaintSlot, Revision, RuleKind, TextureState, TextureStore, TextureStoreOptions, texture_factor, texture_side,
CachedTexture, Checker, CheckerArea, Draw, PaintSlot, Revision, RuleKind, TextureState, TextureStore, TextureStoreOptions, texture_factor,
texture_side,
};
use crate::runtime::env::Label;
use crate::runtime::memory::Remember as _;
@@ -141,4 +141,3 @@ pub fn ticks(units: &RulerUnits, rule: TickRule<'_>, zoom: f64, values: RangeInc
})
.collect()
}
@@ -3,10 +3,10 @@
use crate::contract::Pointer as _;
use crate::contract::cx::CxCore;
use crate::primitives::{FocusKind, FocusRing, PaintShape, StateLayer, StateLayerKind, surface_look_shapes};
use crate::runtime::egui::areas::Layer;
use crate::runtime::env::{Env, EnvValue};
use crate::style::{Ink, StateSet, StyleView, surface_style};
use craft_theme::Opacity;
use crate::runtime::egui::areas::Layer;
use egui::{Color32, Shape, Ui};
/// The ink the surface reads in: the surface kind of the state, else `inherited`.
@@ -11,8 +11,8 @@ use super::model::PresetRow;
use super::state::{PresetState, PresetView};
use super::words::PresetWords;
use crate::contract::{Bind, Entry, NoValue, Outcome, Pattern, Props, Show as _, ShowContainer as _};
use crate::layout_components::Stack;
use crate::dialog::{Dialog, DialogId, DialogResult, DialogStack, StackDialog, dialog_id};
use crate::layout_components::Stack;
use crate::list::RowTest;
use crate::pickers::Select;
use crate::runtime::env::{Env, Label};