Skip to content

Commit

Permalink
fix: docs.rs macOS build failing (#1033)
Browse files Browse the repository at this point in the history
* fix: docs.rs macOS build failing

* lint

* clippy lint

* fmt

---------

Co-authored-by: Amr Bashir <[email protected]>
  • Loading branch information
lucasfernog and amrbashir authored Oct 10, 2023
1 parent cf34c2b commit 0582cdf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changes/docs-rs-macos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Fix documentation for macOS target not being generated on docs.rs.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions examples/multi_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/webview/webkitgtk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 0582cdf

Please sign in to comment.