mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
Lints: import the names the split-out modules use from where they are defined
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
//! Tests for the i18n facade.
|
||||
|
||||
use super::bidi::{PDF, PDI};
|
||||
use super::*;
|
||||
use unicode_bidi::{BidiClass, bidi_class};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`]).
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user