Skip to content

Editor: make delete_range and insert_at methods public #472

Editor: make delete_range and insert_at methods public

Editor: make delete_range and insert_at methods public #472

GitHub Actions / clippy failed Dec 5, 2023 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.74.0 (79e9716c9 2023-11-13)
  • cargo 1.74.0 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (79e9716 2023-11-13)

Annotations

Check failure on line 373 in src/edit/vi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

non-exhaustive patterns: `modit::Event::BackspaceInLine` and `modit::Event::DeleteInLine` not covered

error[E0004]: non-exhaustive patterns: `modit::Event::BackspaceInLine` and `modit::Event::DeleteInLine` not covered
   --> src/edit/vi.rs:373:32
    |
373 |             let action = match event {
    |                                ^^^^^ patterns `modit::Event::BackspaceInLine` and `modit::Event::DeleteInLine` not covered
    |
note: `modit::Event` defined here
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/modit-0.1.3/src/lib.rs:53:5
    |
47  | pub enum Event {
    | --------------
...
53  |     BackspaceInLine,
    |     ^^^^^^^^^^^^^^^ not covered
...
61  |     DeleteInLine,
    |     ^^^^^^^^^^^^ not covered
    = note: the matched value is of type `modit::Event`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
    |
771 ~                 },
772 +                 modit::Event::BackspaceInLine | modit::Event::DeleteInLine => todo!()
    |