mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Run rustfmt +nightly **/*.rs
This commit is contained in:
parent
f584c1b508
commit
7f01ed16ec
4 changed files with 7 additions and 37 deletions
|
|
@ -1,10 +1,4 @@
|
||||||
use ratatui::{
|
use ratatui::{buffer::Buffer, layout::{Constraint, Rect}, text::Span, widgets::{Paragraph, Widget}};
|
||||||
buffer::Buffer,
|
|
||||||
layout::{Constraint, Rect},
|
|
||||||
text::Span,
|
|
||||||
widgets::{Paragraph, Widget},
|
|
||||||
};
|
|
||||||
|
|
||||||
use yazi_config::THEME;
|
use yazi_config::THEME;
|
||||||
|
|
||||||
pub(crate) struct Buttons;
|
pub(crate) struct Buttons;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,4 @@
|
||||||
use ratatui::{
|
use ratatui::{buffer::Buffer, layout::{Alignment, Constraint, Layout, Margin, Rect}, text::Line, widgets::{Block, BorderType, Widget}};
|
||||||
buffer::Buffer,
|
|
||||||
layout::{Alignment, Constraint, Layout, Margin, Rect},
|
|
||||||
text::Line,
|
|
||||||
widgets::{Block, BorderType, Widget},
|
|
||||||
};
|
|
||||||
|
|
||||||
use yazi_config::THEME;
|
use yazi_config::THEME;
|
||||||
|
|
||||||
use crate::Ctx;
|
use crate::Ctx;
|
||||||
|
|
@ -14,9 +8,7 @@ pub(crate) struct Confirm<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Confirm<'a> {
|
impl<'a> Confirm<'a> {
|
||||||
pub(crate) fn new(cx: &'a Ctx) -> Self {
|
pub(crate) fn new(cx: &'a Ctx) -> Self { Self { cx } }
|
||||||
Self { cx }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Widget for Confirm<'a> {
|
impl<'a> Widget for Confirm<'a> {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
use ratatui::{
|
use ratatui::{buffer::Buffer, layout::{Margin, Rect}, widgets::{Block, Borders, Paragraph, Widget}};
|
||||||
buffer::Buffer,
|
|
||||||
layout::{Margin, Rect},
|
|
||||||
widgets::{Block, Borders, Paragraph, Widget},
|
|
||||||
};
|
|
||||||
|
|
||||||
use yazi_config::THEME;
|
use yazi_config::THEME;
|
||||||
|
|
||||||
pub(crate) struct Content<'a> {
|
pub(crate) struct Content<'a> {
|
||||||
|
|
@ -11,9 +6,7 @@ pub(crate) struct Content<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Content<'a> {
|
impl<'a> Content<'a> {
|
||||||
pub(crate) fn new(p: Paragraph<'a>) -> Self {
|
pub(crate) fn new(p: Paragraph<'a>) -> Self { Self { p } }
|
||||||
Self { p }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Widget for Content<'a> {
|
impl<'a> Widget for Content<'a> {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,4 @@
|
||||||
use ratatui::{
|
use ratatui::{buffer::Buffer, layout::{Margin, Rect}, widgets::{Block, Borders, Scrollbar, ScrollbarOrientation, ScrollbarState, StatefulWidget, Widget, Wrap}};
|
||||||
buffer::Buffer,
|
|
||||||
layout::{Margin, Rect},
|
|
||||||
widgets::{
|
|
||||||
Block, Borders, Scrollbar, ScrollbarOrientation, ScrollbarState, StatefulWidget, Widget, Wrap,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
use yazi_config::THEME;
|
use yazi_config::THEME;
|
||||||
|
|
||||||
use crate::Ctx;
|
use crate::Ctx;
|
||||||
|
|
@ -15,9 +8,7 @@ pub(crate) struct List<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> List<'a> {
|
impl<'a> List<'a> {
|
||||||
pub(crate) fn new(cx: &'a Ctx) -> Self {
|
pub(crate) fn new(cx: &'a Ctx) -> Self { Self { cx } }
|
||||||
Self { cx }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Widget for List<'a> {
|
impl<'a> Widget for List<'a> {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue