mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-12 17:01:09 +00:00
M6: rustfmt the craft-fig switch
This commit is contained in:
1 parent
c5b7cdb150
commit
b66e4498b3
4 files changed
+8
-8
No files matched your search
@@ -70,12 +70,12 @@ pub use export::export;
|
||||
|
||||
use crate::FormatError;
|
||||
#[cfg(test)]
|
||||
use craft_fig::{MAX_CANVAS, chunks, network};
|
||||
use craft_fig::{Archive, Limits, decode_canvas, embedded_aliases, embedded_copies, kiwi};
|
||||
pub(crate) use craft_fig::rest::layer_budget;
|
||||
#[cfg(test)]
|
||||
use craft_fig::rest::MAX_FIG_NODES;
|
||||
pub(crate) use craft_fig::rest::layer_budget;
|
||||
use craft_fig::{Archive, Limits, decode_canvas, embedded_aliases, embedded_copies, kiwi};
|
||||
pub use craft_fig::{JAM_HEADER, is_fig};
|
||||
#[cfg(test)]
|
||||
use craft_fig::{MAX_CANVAS, chunks, network};
|
||||
pub(crate) use craft_figma_rest::style_name;
|
||||
|
||||
/// Largest image member read.
|
||||
|
||||
@@ -32,9 +32,9 @@ use figcraft_doc::{
|
||||
use serde_json::Value;
|
||||
use sha1::Digest;
|
||||
|
||||
use crate::FormatError;
|
||||
use craft_fig::kiwi::{Kv, Schema, encode};
|
||||
use craft_fig::{network, path};
|
||||
use crate::FormatError;
|
||||
|
||||
mod assets;
|
||||
mod common;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use super::{MAX_SCALE_FACTOR, MIN_SCALE_FACTOR};
|
||||
use super::common::{
|
||||
bool_data, changed, layout_grid, prop_type, resolved_alike, scaled, sort_position, symbol_data, text_data, text_value, var_data, variant_pairs,
|
||||
};
|
||||
use super::scale::main_equal_lengths;
|
||||
use super::{AUX, BTreeMap, Bound, Exporter, Fields, Kv, MAX_NODES, Node, NodeId, NodeKind, PropDef, StyleKind, Value, arr, b, e, fl, guid, o, s};
|
||||
use super::{MAX_SCALE_FACTOR, MIN_SCALE_FACTOR};
|
||||
|
||||
/// A changed effect/grid style, and a payload only when it differs from that style's values.
|
||||
struct ListStyleOverride {
|
||||
|
||||
@@ -67,12 +67,12 @@ pub(crate) use craft_fig::rest::{FIG_CAPPED_MAINS_FIELD, FIG_LIBRARY_CONTEXTS_FI
|
||||
const MAX_PATH_BYTES: usize = 4 << 20;
|
||||
/// Most path elements in one vector.
|
||||
const MAX_PATH_ELEMENTS: usize = 200_000;
|
||||
#[cfg(test)]
|
||||
pub(crate) use craft_figma_rest::MAX_WARNINGS;
|
||||
/// Distinct warnings in first-seen order, with repeat counts (at most 200). The
|
||||
/// import report reads the `(×n)` suffix off before it looks the note up in the catalogue, so a
|
||||
/// counted note is still translated (`ui-egui`'s `note_text`).
|
||||
pub(crate) use craft_figma_rest::Warnings;
|
||||
#[cfg(test)]
|
||||
pub(crate) use craft_figma_rest::MAX_WARNINGS;
|
||||
/// Most shared style definitions read.
|
||||
const MAX_STYLES: usize = 10_000;
|
||||
/// Image key used for image fills without an `imageRef`.
|
||||
|
||||
Reference in new issue
Block a user