зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 22:35:50 +03:00
prefer Into::into to From::from
Этот коммит содержится в:
@@ -260,7 +260,7 @@ impl<'a> Editor<'a> {
|
||||
|
||||
if search_height > 0 {
|
||||
let textarea = &mut self.buffers[self.current].textarea;
|
||||
match Input::from(crossterm::event::read()?) {
|
||||
match crossterm::event::read()?.into() {
|
||||
Input {
|
||||
key: Key::Char('g' | 'n'),
|
||||
ctrl: true,
|
||||
@@ -307,7 +307,7 @@ impl<'a> Editor<'a> {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
match Input::from(crossterm::event::read()?) {
|
||||
match crossterm::event::read()?.into() {
|
||||
Input {
|
||||
key: Key::Char('q'),
|
||||
ctrl: true,
|
||||
|
||||
Ссылка в новой задаче
Block a user