Reformat with the 2024 rustfmt style edition
This commit is contained in:
parent
debd3795e9
commit
dfc22b0008
19 changed files with 32 additions and 33 deletions
|
|
@ -1,11 +1,11 @@
|
|||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{BLACK, WHITE},
|
||||
widgets::{Block, Text},
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{
|
||||
style_helpers::{length, percent, repeat},
|
||||
AlignContent, AlignItems, Display, FlexDirection,
|
||||
style_helpers::{length, percent, repeat},
|
||||
};
|
||||
use time::Date;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
use image::{
|
||||
imageops::{self, FilterType},
|
||||
Rgba, RgbaImage,
|
||||
imageops::{self, FilterType},
|
||||
};
|
||||
use showbits_common::{color, widgets::Image, Node, Tree, WidgetExt};
|
||||
use taffy::{style_helpers::percent, AlignItems, Display, FlexDirection};
|
||||
use showbits_common::{Node, Tree, WidgetExt, color, widgets::Image};
|
||||
use taffy::{AlignItems, Display, FlexDirection, style_helpers::percent};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{BLACK, WHITE},
|
||||
widgets::{Block, Text},
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{
|
||||
style_helpers::{length, percent},
|
||||
AlignItems, Display, FlexDirection,
|
||||
style_helpers::{length, percent},
|
||||
};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
use image::{imageops, RgbaImage};
|
||||
use rand::{seq::SliceRandom, Rng};
|
||||
use image::{RgbaImage, imageops};
|
||||
use rand::{Rng, seq::SliceRandom};
|
||||
use showbits_assets::{EGG_BAD_COVERS, EGG_BAD_PATTERNS, EGG_COVERS, EGG_PATTERNS};
|
||||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{self, WHITE},
|
||||
widgets::{Image, Text},
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{style_helpers::percent, AlignItems, Display, FlexDirection};
|
||||
use taffy::{AlignItems, Display, FlexDirection, style_helpers::percent};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
use image::RgbaImage;
|
||||
use palette::{FromColor, IntoColor, LinLumaa};
|
||||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{self, BLACK, WHITE},
|
||||
widgets::Image,
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{style_helpers::percent, AlignItems, Display, FlexDirection};
|
||||
use taffy::{AlignItems, Display, FlexDirection, style_helpers::percent};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
use image::{Luma, Pixel, RgbaImage};
|
||||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{BLACK, WHITE},
|
||||
widgets::{Image, Text},
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{
|
||||
style_helpers::{length, percent},
|
||||
AlignItems, Display, FlexDirection,
|
||||
style_helpers::{length, percent},
|
||||
};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use showbits_common::{color::WHITE, widgets::Text, Node, Tree, WidgetExt};
|
||||
use showbits_common::{Node, Tree, WidgetExt, color::WHITE, widgets::Text};
|
||||
use taffy::style_helpers::percent;
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
use showbits_common::{
|
||||
Node, Tree, WidgetExt,
|
||||
color::{BLACK, WHITE},
|
||||
widgets::{Block, Text},
|
||||
Node, Tree, WidgetExt,
|
||||
};
|
||||
use taffy::{
|
||||
style_helpers::{length, percent, repeat},
|
||||
AlignItems, Display, FlexDirection,
|
||||
style_helpers::{length, percent, repeat},
|
||||
};
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use showbits_common::{color::WHITE, widgets::Typst, Node, Tree, WidgetExt};
|
||||
use showbits_common::{Node, Tree, WidgetExt, color::WHITE, widgets::Typst};
|
||||
use taffy::style_helpers::percent;
|
||||
|
||||
use crate::printer::Printer;
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ use std::path::PathBuf;
|
|||
use escpos::{
|
||||
driver::FileDriver,
|
||||
printer::Printer as EPrinter,
|
||||
utils::{PageCode, Protocol, GS},
|
||||
utils::{GS, PageCode, Protocol},
|
||||
};
|
||||
use image::{Rgba, RgbaImage};
|
||||
use showbits_common::{color, Tree};
|
||||
use showbits_common::{Tree, color};
|
||||
use taffy::{AvailableSpace, NodeId, Size};
|
||||
|
||||
pub struct Printer {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ mod r#static;
|
|||
mod statuscode;
|
||||
|
||||
use axum::{
|
||||
Form, Router,
|
||||
extract::{DefaultBodyLimit, Multipart, State},
|
||||
http::StatusCode,
|
||||
response::{IntoResponse, Redirect, Response},
|
||||
routing::{get, post},
|
||||
Form, Router,
|
||||
};
|
||||
use serde::Deserialize;
|
||||
use tokio::{net::TcpListener, sync::mpsc};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use axum::{
|
||||
http::{header, StatusCode, Uri},
|
||||
http::{StatusCode, Uri, header},
|
||||
response::{IntoResponse, Response},
|
||||
};
|
||||
use rust_embed::RustEmbed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue