Skip to content

Commit

Permalink
fix(test): remove ? after with_url in bench tests (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
pewsheen authored Feb 15, 2024
1 parent 3bdccb7 commit 23cc5f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn main() -> wry::Result<()> {
.build(&event_loop)
.unwrap();
let _webview = WebViewBuilder::new(&window)
.with_url("https://tauri.app")?
.with_url("https://tauri.app")
.build()?;

event_loop.run(move |event, _, control_flow| {
Expand Down
2 changes: 1 addition & 1 deletion bench/tests/src/cpu_intensive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() -> wry::Result<()> {
.body(data)
.unwrap()
})
.with_url("wrybench://localhost")?
.with_url("wrybench://localhost")
.with_ipc_handler(handler)
.build()?;

Expand Down
2 changes: 1 addition & 1 deletion bench/tests/src/custom_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn main() -> wry::Result<()> {
.body(INDEX_HTML.into())
.unwrap()
})
.with_url("wrybench://localhost")?
.with_url("wrybench://localhost")
.build()?;

event_loop.run(move |event, _, control_flow| {
Expand Down
2 changes: 1 addition & 1 deletion bench/tests/src/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn main() -> wry::Result<()> {
}
};
let _webview = WebViewBuilder::new(&window)
.with_url(url)?
.with_url(url)
.with_ipc_handler(handler)
.build()?;

Expand Down

0 comments on commit 23cc5f5

Please sign in to comment.