зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 22:35:50 +03:00
prefer Into::into to From::from
Этот коммит содержится в:
@@ -48,7 +48,7 @@ fn main() -> io::Result<()> {
|
||||
f.render_widget(widget, chunks[0]);
|
||||
})?;
|
||||
|
||||
match Input::from(crossterm::event::read()?) {
|
||||
match crossterm::event::read()?.into() {
|
||||
Input { key: Key::Esc, .. } => break,
|
||||
Input {
|
||||
key: Key::Enter, ..
|
||||
|
||||
Ссылка в новой задаче
Block a user