diff --git a/src/widgets/mod.rs b/src/widgets/mod.rs index 8102a22..bbf9318 100644 --- a/src/widgets/mod.rs +++ b/src/widgets/mod.rs @@ -19,7 +19,7 @@ pub enum Message { GoForward, Refresh, GoHome, - GoUrl(String), + GoToUrl(String), ChangeTab(TabSelectionType), CloseTab(TabSelectionType), CreateTab, @@ -204,7 +204,7 @@ where Message::GoHome => { self.engine().goto_url(&self.home); } - Message::GoUrl(url) => { + Message::GoToUrl(url) => { self.engine().goto_url(&to_url(&url).unwrap()); } Message::UpdateUrl => { diff --git a/src/widgets/nav_bar.rs b/src/widgets/nav_bar.rs index dbf6e8e..17974fc 100644 --- a/src/widgets/nav_bar.rs +++ b/src/widgets/nav_bar.rs @@ -33,8 +33,8 @@ pub fn nav_bar(url: &str) -> Element { let space_right = Space::new(Length::Fill, Length::Shrink); let search = text_input("https://site.com", url) .on_input(Message::UrlChanged) - .on_paste(Message::GoUrl) - .on_submit(Message::GoUrl(url.to_string())) + .on_paste(Message::GoToUrl) + .on_submit(Message::GoToUrl(url.to_string())) .line_height(LineHeight::Relative(2.0)); row!(