Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Nov 2, 2024
1 parent bdc4d4f commit bc2b64a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions src/engines/ultralight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ impl Engine for Ultralight {
.get_view_mut(id)
.view
.load_html(&html)
.ok()
.expect("Failed to load given html"),
}
self.get_view_mut(id).was_loading = true;
Expand Down Expand Up @@ -391,17 +390,11 @@ impl Engine for Ultralight {
}

fn get_url(&self, id: ViewId) -> String {
match self.get_view(id).view.url() {
Ok(url) => url,
Err(_) => String::new(),
}
self.get_view(id).view.url().unwrap_or_default()
}

fn get_title(&self, id: ViewId) -> String {
match self.get_view(id).view.title() {
Ok(title) => title,
Err(_) => String::new(),
}
self.get_view(id).view.title().unwrap_or_default()
}

fn get_cursor(&self, id: ViewId) -> mouse::Interaction {
Expand Down
2 changes: 1 addition & 1 deletion src/webview/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl<'a> WebViewWidget<'a> {
}
}

impl<'a, Renderer> Widget<Action, Theme, Renderer> for WebViewWidget<'_>
impl<Renderer> Widget<Action, Theme, Renderer> for WebViewWidget<'_>
where
Renderer: iced::advanced::image::Renderer<Handle = iced::advanced::image::Handle>,
{
Expand Down

0 comments on commit bc2b64a

Please sign in to comment.