diff --git a/.changes/docs-rs-macos.md b/.changes/docs-rs-macos.md new file mode 100644 index 000000000..609ab0015 --- /dev/null +++ b/.changes/docs-rs-macos.md @@ -0,0 +1,5 @@ +--- +"wry": patch +--- + +Fix documentation for macOS target not being generated on docs.rs. diff --git a/Cargo.toml b/Cargo.toml index d6ccf57e7..d73ce538e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ documentation = "https://docs.rs/wry" categories = [ "gui" ] [package.metadata.docs.rs] -default-features = false +no-default-features = true features = [ "dox", "file-drop", "protocol" ] targets = [ "x86_64-unknown-linux-gnu", diff --git a/examples/multi_window.rs b/examples/multi_window.rs index 0c5db5584..b74ed14f1 100644 --- a/examples/multi_window.rs +++ b/examples/multi_window.rs @@ -75,8 +75,10 @@ fn main() -> wry::Result<()> { match event { Event::NewEvents(StartCause::Init) => println!("Wry application started!"), Event::WindowEvent { - event, window_id, .. - } if event == WindowEvent::CloseRequested => { + event: WindowEvent::CloseRequested, + window_id, + .. + } => { webviews.remove(&window_id); if webviews.is_empty() { *control_flow = ControlFlow::Exit diff --git a/src/webview/webkitgtk/mod.rs b/src/webview/webkitgtk/mod.rs index dc8d85bbd..0406f3e93 100644 --- a/src/webview/webkitgtk/mod.rs +++ b/src/webview/webkitgtk/mod.rs @@ -80,7 +80,7 @@ impl InnerWebView { }; use webkit2gtk::WebContextExt; if let Some(website_data_manager) = web_context.context().website_data_manager() { - let mut settings = NetworkProxySettings::new(Some(&proxy_uri.as_str()), &[]); + let mut settings = NetworkProxySettings::new(Some(proxy_uri.as_str()), &[]); website_data_manager .set_network_proxy_settings(NetworkProxyMode::Custom, Some(&mut settings)); }