diff --git a/crates/color/src/palette/aco.rs b/crates/color/src/palette/aco.rs index a0c1fd6ad..89b9113ef 100644 --- a/crates/color/src/palette/aco.rs +++ b/crates/color/src/palette/aco.rs @@ -1,7 +1,7 @@ //! Photoshop `.aco` swatches and `.act` colour tables. +use super::SwatchColor; use super::reader::{ACT_COLORS, ACT_PALETTE_LEN, ACT_TRAILER_LEN, MAX_NAME_UNITS, Reader, finite, unit, utf16_units}; -use super::{Hsb, Lab, SwatchColor}; // ---------------------------------------------------------------- .aco diff --git a/crates/color/src/palette/ase.rs b/crates/color/src/palette/ase.rs index e298a8291..1155bf883 100644 --- a/crates/color/src/palette/ase.rs +++ b/crates/color/src/palette/ase.rs @@ -3,7 +3,7 @@ use super::reader::{ ASE_COLOR, ASE_GROUP_END, ASE_GROUP_START, ASE_MAX_GROUPS, ASE_MAX_SWATCHES, ASE_SIGNATURE, MAX_NAME_UNITS, Reader, finite, unit, utf16_units, }; -use super::{Hsb, Lab, Srgba, SwatchColor, SwatchKind}; +use super::{Hsb, Srgba, SwatchColor, SwatchKind}; // ---------------------------------------------------------------- .ase diff --git a/crates/font-manager/src/panel/browse/cards.rs b/crates/font-manager/src/panel/browse/cards.rs index 0a48ebbab..bc6f0c8fd 100644 --- a/crates/font-manager/src/panel/browse/cards.rs +++ b/crates/font-manager/src/panel/browse/cards.rs @@ -4,9 +4,9 @@ use craft_ui::contract::{Props as _, Styled as _, clicked}; use super::{ Access, Arc, Badge, Button, Catalog, Collection, CollectionProps, CollectionResponse, Common, Component, ComponentStyle, ContainerProps, Cow, Cx, - DisplayOrder, Emphasis, FaceInfo, Flow, FontSample, Ink, ItemOutput, ItemSource, Kind, Label, Link, MeasureCx, Metrics, Name, NoValue, Outcome, - Owner, PartsCx, Pos2, Progress, Proposal, Rect, Response, Role, RuleKind, SampleFace, SelectMode, Selection, Shade, Sizing, SpanLayout, Stateful, - StyleCx, Text, TextLook, TextRun, Tone, TypeRole, Variant, Vec2, + DisplayOrder, Emphasis, FaceInfo, Flow, FontSample, FontsBrowseWords, Ink, ItemOutput, ItemSource, Kind, Label, Link, MeasureCx, Metrics, Name, + NoValue, Outcome, Owner, PartsCx, Pos2, Progress, Proposal, Rect, Response, Role, RuleKind, SampleFace, SelectMode, Selection, Shade, Sizing, + SpanLayout, Stateful, StyleCx, Text, TextLook, TextRun, Tone, TypeRole, Variant, Vec2, }; use craft_ui::primitives::RectSide; diff --git a/crates/i18n/src/tests.rs b/crates/i18n/src/tests.rs index c9a37d7c8..d4dc9df01 100644 --- a/crates/i18n/src/tests.rs +++ b/crates/i18n/src/tests.rs @@ -1,6 +1,5 @@ //! Tests for the i18n facade. -use super::bidi::{PDF, PDI}; use super::*; use unicode_bidi::{BidiClass, bidi_class}; diff --git a/crates/print/src/tests/pdf_bounds.rs b/crates/print/src/tests/pdf_bounds.rs index 073cbc626..7ceefc06f 100644 --- a/crates/print/src/tests/pdf_bounds.rs +++ b/crates/print/src/tests/pdf_bounds.rs @@ -1,5 +1,5 @@ use super::object::{Lexer, Obj, get}; -use super::xref::Budget; +use super::xref::{Budget, decode}; use super::*; use craft_ui::testing::trial; diff --git a/crates/proof/src/affix/check.rs b/crates/proof/src/affix/check.rs index 94327afc1..55ab388c3 100644 --- a/crates/proof/src/affix/check.rs +++ b/crates/proof/src/affix/check.rs @@ -1,7 +1,7 @@ //! Word lookup: stem and flag-set probes, affix rule application, compounds and case variants. use super::build::intersects; -use super::flags::{Excluded, FlagProbe, Steps}; +use super::flags::{Excluded, FlagProbe, SUGGEST_STEPS, Steps}; use super::parse::Repeat; use super::{ AffixDict, Casing, EMPTY, FxMap, GROUP_STEPS, INNER_CHAIN, MAX_COMPOUND_BYTES, MAX_HOMONYMS, MAX_INPUT_BYTES, MAX_SHARPS, MAX_SIMPLE_WORK, diff --git a/crates/proof/src/affix/compound.rs b/crates/proof/src/affix/compound.rs index eed2a25ab..e1a6ad7e2 100644 --- a/crates/proof/src/affix/compound.rs +++ b/crates/proof/src/affix/compound.rs @@ -44,7 +44,8 @@ //! [`MAX_PARTS`] parts, each part's analyses computed once, and at most [`MAX_WORK`] steps (rules //! tried and splits followed) per word; past that the word is no compound. -use super::{AffixDict, Excluded, FlagKey, FlagMode, Rule, has}; +use super::flags::Excluded; +use super::{AffixDict, FlagKey, FlagMode, Rule, has}; mod analysis; mod near; diff --git a/crates/proof/src/affix/forms.rs b/crates/proof/src/affix/forms.rs index f89c43fc4..1453bf33b 100644 --- a/crates/proof/src/affix/forms.rs +++ b/crates/proof/src/affix/forms.rs @@ -1,7 +1,7 @@ //! Form generation: every word a stem accepts, within a work budget. use super::parse::non_empty; -use super::{AffixDict, MAX_FORMS, MAX_FORMS_WORK, Rule, has}; +use super::{AffixDict, INNER_CHAIN, MAX_FORMS, MAX_FORMS_WORK, Rule, has}; impl AffixDict { /// Every form of the stem `stem` (itself included), unsorted, possibly with repeats; at most diff --git a/crates/update/src/self_update/helper.rs b/crates/update/src/self_update/helper.rs index 4ec5d36e9..ab710b3ea 100644 --- a/crates/update/src/self_update/helper.rs +++ b/crates/update/src/self_update/helper.rs @@ -6,7 +6,9 @@ use super::detect::{clear_pretend_version, exe_after_msi, msi_step, restarts}; use super::replace::is_plain_file; #[cfg(windows)] use super::replace::{mark_installed, unmark_unless_scheduled}; -use super::{App, Install, Installed, OsString, Path, PathBuf, Paths, Release, Restart, Version, detect, install, process, update, version}; +use super::{App, OsString, Path, PathBuf, Paths, Version, install, version}; +#[cfg(windows)] +use super::{Install, Release, Restart, detect, process, update}; /// The first argument of the Windows update helper: a copy of this program that finishes an /// update once the launcher has exited (see [`finish`]). diff --git a/crates/update/src/self_update/relaunch.rs b/crates/update/src/self_update/relaunch.rs index 8e9598221..77edba1f8 100644 --- a/crates/update/src/self_update/relaunch.rs +++ b/crates/update/src/self_update/relaunch.rs @@ -1,5 +1,7 @@ //! Starting the launcher again after this process exits, including through the host Flatpak. +#[cfg(target_os = "linux")] +use super::PRETEND_VAR; use super::detect::clear_pretend_version; #[cfg(target_os = "linux")] use super::detect::pretend_var;