diff --git a/src/components/textinput.rs b/src/components/textinput.rs index 0d239cf1e6..6192486922 100644 --- a/src/components/textinput.rs +++ b/src/components/textinput.rs @@ -280,8 +280,12 @@ mod tests { #[test] fn test_smoke() { - let mut comp = - TextInputComponent::new(SharedTheme::default(), "", ""); + let mut comp = TextInputComponent::new( + SharedTheme::default(), + SharedKeyConfig::default(), + "", + "", + ); comp.set_text(String::from("a\nb")); @@ -304,8 +308,12 @@ mod tests { #[test] fn test_visualize_newline() { - let mut comp = - TextInputComponent::new(SharedTheme::default(), "", ""); + let mut comp = TextInputComponent::new( + SharedTheme::default(), + SharedKeyConfig::default(), + "", + "", + ); comp.set_text(String::from("a\nb"));