mirror of
https://github.com/ratatui-org/ratatui
synced 2025-02-16 22:18:51 +00:00
style: run rustfmt and clippy
This commit is contained in:
parent
bcd1e30376
commit
cf169d1582
3 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ impl From<Modifier> for Option<crossterm::Attribute> {
|
|||
Modifier::Invert => Some(crossterm::Attribute::Reverse),
|
||||
Modifier::Italic => Some(crossterm::Attribute::Italic),
|
||||
Modifier::Underline => Some(crossterm::Attribute::Underlined),
|
||||
_ => None
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ pub use self::termion::{AlternateScreenBackend, MouseBackend, RawBackend, Termio
|
|||
#[cfg(feature = "crossterm")]
|
||||
mod crossterm;
|
||||
#[cfg(feature = "crossterm")]
|
||||
pub use self::crossterm::{CrosstermBackend};
|
||||
pub use self::crossterm::CrosstermBackend;
|
||||
|
||||
pub trait Backend {
|
||||
fn draw<'a, I>(&mut self, content: I) -> Result<(), io::Error>
|
||||
|
|
|
@ -247,7 +247,7 @@ impl<'b> Widget for SelectableList<'b> {
|
|||
Item::StyledData(format!("{} {}", blank_symbol, item), &self.style)
|
||||
}
|
||||
} else {
|
||||
Item::StyledData(format!("{}", item), &self.style)
|
||||
Item::StyledData(item.to_string(), &self.style)
|
||||
}
|
||||
})
|
||||
.skip(offset as usize);
|
||||
|
|
Loading…
Add table
Reference in a new issue