зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 14:26:17 +03:00
add #[non_exhaustive] to CursorMove
Этот коммит содержится в:
@@ -4,7 +4,9 @@ use crate::word::{find_word_start_backward, find_word_start_forward};
|
||||
use arbitrary::Arbitrary;
|
||||
use std::cmp;
|
||||
|
||||
/// Specify how to move the cursor.
|
||||
/// Specify how to move the cursor. This type is marked as `#[non_exhaustive]` since more variations may be supported in the
|
||||
/// future.
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
||||
pub enum CursorMove {
|
||||
|
||||
@@ -8,7 +8,7 @@ use crossterm::event::{
|
||||
#[cfg(feature = "termion")]
|
||||
use termion::event::{Event as TermionEvent, Key as TermionKey, MouseEvent as TermionMouseEvent};
|
||||
|
||||
/// Backend-agnostic key input kind.
|
||||
/// Backend-agnostic key input kind. This type is marked as `#[non_exhaustive]` since more keys may be supported in the future.
|
||||
#[non_exhaustive]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
||||
|
||||
Ссылка в новой задаче
Block a user