1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-03 14:26:17 +03:00

add #[non_exhaustive] to CursorMove

Этот коммит содержится в:
rhysd
2022-10-02 21:24:11 +09:00
родитель 3f26740072
Коммит 2f300b9dfa
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@@ -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))]