Run cargo fmt

This commit is contained in:
Joscha 2025-02-27 16:36:27 +01:00
parent 3609b1b760
commit 45102d108d
2 changed files with 3 additions and 2 deletions

View file

@ -50,7 +50,8 @@ pub struct CellsDrawing {
impl Drawing for CellsDrawing {
fn draw(&self, printer: &mut PersistentPrinter, ctx: &mut Context) -> anyhow::Result<()> {
let mut image: image::ImageBuffer<Rgba<u8>, Vec<u8>> = RgbaImage::new(Printer::WIDTH / self.scale, self.rows);
let mut image: image::ImageBuffer<Rgba<u8>, Vec<u8>> =
RgbaImage::new(Printer::WIDTH / self.scale, self.rows);
// Initialize first line randomly
for x in 0..image.width() {

View file

@ -6,7 +6,7 @@ use showbits_common::{
color::{self, WHITE},
widgets::{Image, Text},
};
use taffy::{prelude::length, style_helpers::percent, AlignItems, Display, FlexDirection};
use taffy::{AlignItems, Display, FlexDirection, prelude::length, style_helpers::percent};
use crate::persistent_printer::PersistentPrinter;