|
1 | | -#![allow(clippy::too_many_lines)] |
2 | | - |
3 | 1 | use crate::{ |
4 | 2 | core::{Event, NotePosition, SequenceDiagram}, |
5 | 3 | render::render_sequence, |
@@ -567,11 +565,6 @@ fn confirm_keybindings(world: &mut World) { |
567 | 565 | }); |
568 | 566 | } |
569 | 567 |
|
570 | | -#[allow( |
571 | | - clippy::cast_possible_wrap, |
572 | | - clippy::cast_possible_truncation, |
573 | | - clippy::cast_sign_loss |
574 | | -)] |
575 | 568 | fn handle_input_confirm(world: &mut World) { |
576 | 569 | let mode = world.get::<EditorState>().mode.clone(); |
577 | 570 | match mode { |
@@ -794,11 +787,6 @@ fn save_note_changes(world: &mut World) { |
794 | 787 | world.get_mut::<EditorState>().reset(); |
795 | 788 | } |
796 | 789 |
|
797 | | -#[allow( |
798 | | - clippy::cast_possible_wrap, |
799 | | - clippy::cast_possible_truncation, |
800 | | - clippy::cast_sign_loss |
801 | | -)] |
802 | 790 | fn handle_participant_nav(world: &mut World, delta: i32) { |
803 | 791 | let participant_count = world.get::<SequenceDiagram>().participant_count(); |
804 | 792 | if participant_count == 0 { |
@@ -879,7 +867,6 @@ pub fn render(frame: &mut Frame, world: &mut World) { |
879 | 867 | } |
880 | 868 | } |
881 | 869 |
|
882 | | -#[allow(clippy::cast_possible_truncation)] |
883 | 870 | fn render_empty_state(frame: &mut Frame, area: Rect, world: &World) { |
884 | 871 | let theme = world.get::<Theme>(); |
885 | 872 | let block = Block::default() |
@@ -941,7 +928,6 @@ fn render_empty_state(frame: &mut Frame, area: Rect, world: &World) { |
941 | 928 | ); |
942 | 929 | } |
943 | 930 |
|
944 | | -#[allow(clippy::cast_possible_truncation)] |
945 | 931 | fn render_dual_participant_selector(frame: &mut Frame, area: Rect, world: &World) { |
946 | 932 | let editor = world.get::<EditorState>(); |
947 | 933 | let diagram = world.get::<SequenceDiagram>(); |
@@ -1027,7 +1013,6 @@ fn render_dual_participant_selector(frame: &mut Frame, area: Rect, world: &World |
1027 | 1013 | } |
1028 | 1014 | } |
1029 | 1015 |
|
1030 | | -#[allow(clippy::cast_possible_truncation)] |
1031 | 1016 | fn render_note_participant_selector(frame: &mut Frame, area: Rect, world: &World) { |
1032 | 1017 | let editor = world.get::<EditorState>(); |
1033 | 1018 | let diagram = world.get::<SequenceDiagram>(); |
@@ -1086,7 +1071,6 @@ fn render_note_participant_selector(frame: &mut Frame, area: Rect, world: &World |
1086 | 1071 | } |
1087 | 1072 | } |
1088 | 1073 |
|
1089 | | -#[allow(clippy::cast_possible_truncation)] |
1090 | 1074 | fn render_note_position_selector(frame: &mut Frame, area: Rect, world: &World) { |
1091 | 1075 | let editor = world.get::<EditorState>(); |
1092 | 1076 | let diagram = world.get::<SequenceDiagram>(); |
|
0 commit comments