Skip to content

Commit ae93d6e

Browse files
committed
style: 格式化代码
1 parent e70640d commit ae93d6e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/ui/export.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use imageproc::drawing::{draw_filled_rect_mut, draw_text_mut};
66
use imageproc::rect::Rect as ImageRect;
77
use ratatui::buffer::Buffer;
88
use ratatui::style::{Color, Modifier};
9-
use unicode_width::UnicodeWidthStr;
109
use tiny_skia::{FillRule, Paint, PathBuilder, Pixmap, Rect, Transform};
10+
use unicode_width::UnicodeWidthStr;
1111

1212
use crate::ui::theme::Theme;
1313

@@ -329,7 +329,13 @@ fn rounded_rect_image(width: u32, height: u32, radius: u32, color: Rgba<u8>) ->
329329
rounded_rect_path(width, height, radius)
330330
};
331331

332-
pixmap.fill_path(&path, &paint, FillRule::Winding, Transform::identity(), None);
332+
pixmap.fill_path(
333+
&path,
334+
&paint,
335+
FillRule::Winding,
336+
Transform::identity(),
337+
None,
338+
);
333339
pixmap_to_rgba_image(pixmap)
334340
}
335341

0 commit comments

Comments
 (0)