diff --git a/src/math_app.rs b/src/math_app.rs index 6596265..a3b34a6 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -634,8 +634,7 @@ impl epi::App for MathApp { self.side_panel(ctx); } - // Referenced in plotting code, but needs to be here so it can be later - // referenced when storing `last_info` + // Referenced in plotting code, but needs to be here so it can be later referenced when storing `last_info` let mut area_list: Vec> = Vec::new(); // Central panel which contains the central plot (or an error created when diff --git a/src/widgets.rs b/src/widgets.rs index bc2f5d6..3a98a13 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -84,7 +84,7 @@ impl<'a> AutoComplete<'a> { /// Moves cursor of TextEdit `te_id` to the end pub fn move_cursor_to_end(ctx: &egui::Context, te_id: egui::Id) { - let mut state = TextEdit::load_state(ctx, te_id).unwrap(); + let mut state = TextEdit::load_state(ctx, te_id).expect("Expected TextEdit"); state.set_cursor_range(Some(CursorRange::one(Cursor { ccursor: CCursor { index: 0,