mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-27 08:04:29 -04:00
fmt
This commit is contained in:
+8
-2
@@ -4,7 +4,10 @@ use crossterm::terminal::WindowSize;
|
||||
use flume::{Sender, r#async::RecvStream, unbounded};
|
||||
use futures_util::stream::StreamExt as _;
|
||||
use ratatui::layout::Rect;
|
||||
use ratatui_image::{FontSize, picker::{Picker, ProtocolType}};
|
||||
use ratatui_image::{
|
||||
FontSize,
|
||||
picker::{Picker, ProtocolType}
|
||||
};
|
||||
use tdf::{
|
||||
converter::{ConvertedPage, ConverterMsg, run_conversion_loop},
|
||||
renderer::{RenderError, RenderInfo, RenderNotif, fill_default, start_rendering}
|
||||
@@ -54,7 +57,10 @@ pub struct RenderState {
|
||||
pub to_render_tx: Sender<RenderNotif>
|
||||
}
|
||||
|
||||
const FONT_SIZE: FontSize = FontSize { width: 8, height: 14 };
|
||||
const FONT_SIZE: FontSize = FontSize {
|
||||
width: 8,
|
||||
height: 14
|
||||
};
|
||||
|
||||
pub fn start_rendering_loop(
|
||||
path: impl AsRef<Path>,
|
||||
|
||||
Reference in New Issue
Block a user