Run cargo fmt
This commit is contained in:
parent
3609b1b760
commit
45102d108d
2 changed files with 3 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue