chore: clippy + fmt
This commit is contained in:
@ -26,7 +26,11 @@ pub struct TileBar<'a> {
|
||||
|
||||
impl<'a> TileBar<'a> {
|
||||
pub fn new(model: &'a Model, mode: &'a AppMode, tile_cat_idx: usize) -> Self {
|
||||
Self { model, mode, tile_cat_idx }
|
||||
Self {
|
||||
model,
|
||||
mode,
|
||||
tile_cat_idx,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,7 +71,7 @@ impl<'a> Widget for TileBar<'a> {
|
||||
}
|
||||
|
||||
// Hint
|
||||
if matches!(self.mode, AppMode::TileSelect { .. }) {
|
||||
if matches!(self.mode, AppMode::TileSelect) {
|
||||
let hint = " [Enter] cycle axis [r/c/p] set axis [←→] select [Esc] cancel";
|
||||
if x + hint.len() as u16 <= area.x + area.width {
|
||||
buf.set_string(x, area.y, hint, Style::default().fg(Color::DarkGray));
|
||||
|
||||
Reference in New Issue
Block a user