зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-04 06:45:50 +03:00
chore: refresh GitHub repository setup (#23)
* chore: refresh GitHub repository setup * chore: align CI with Rust 1.88 MSRV
Этот коммит содержится в:
@@ -19,7 +19,7 @@ fn validate(textarea: &mut TextArea) -> bool {
|
||||
Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.border_style(Color::LightRed)
|
||||
.title(format!("ERROR: {}", err)),
|
||||
.title(format!("ERROR: {err}")),
|
||||
);
|
||||
false
|
||||
} else {
|
||||
|
||||
@@ -31,7 +31,7 @@ impl Mode {
|
||||
Self::Visual => "type y to yank, type d to delete, type Esc to back to normal mode",
|
||||
Self::Operator(_) => "move cursor to apply operator",
|
||||
};
|
||||
let title = format!("{} MODE ({})", self, help);
|
||||
let title = format!("{self} MODE ({help})");
|
||||
Block::default().borders(Borders::ALL).title(title)
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ impl fmt::Display for Mode {
|
||||
Self::Normal => write!(f, "NORMAL"),
|
||||
Self::Insert => write!(f, "INSERT"),
|
||||
Self::Visual => write!(f, "VISUAL"),
|
||||
Self::Operator(c) => write!(f, "OPERATOR({})", c),
|
||||
Self::Operator(c) => write!(f, "OPERATOR({c})"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user