Enable clippy

This commit is contained in:
Alexandre Kirszenberg committed 2022-01-08 16:35:26 +01:00
1 parent 4f1894ff5c
commit b6903bf558
14 files changed
+46 -50

No files matched your search

+9 -1
View File
@@ -4,11 +4,13 @@ use wry::{
webview::WebView,
};
pub(crate) type DynEventHandlerFn = dyn Fn(&mut EventLoop<()>, &mut WebView);
pub struct DesktopConfig<'a> {
pub window: WindowBuilder,
pub(crate) manual_edits: Option<Vec<DomEdit<'a>>>,
pub(crate) pre_rendered: Option<String>,
pub(crate) event_handler: Option<Box<dyn Fn(&mut EventLoop<()>, &mut WebView)>>,
pub(crate) event_handler: Option<Box<DynEventHandlerFn>>,
}
impl<'a> DesktopConfig<'a> {
@@ -55,3 +57,9 @@ impl<'a> DesktopConfig<'a> {
self
}
}
impl<'a> Default for DesktopConfig<'a> {
fn default() -> Self {
Self::new()
}
}