Skip to content

Commit 91c2e63

Browse files
authored
fix: add missing use<> for wasm_browser (#3411)
## Description The migration to edition 2024 missed signatures gated with `cfg(wasm_browser)`. Spotted while upgrading iroh-gossip to iroh@main. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist <!-- Remove any that are not relevant. --> - [x] Self-review.
1 parent a3187ca commit 91c2e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iroh/src/endpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ impl Endpoint {
937937
/// with a [`NodeAddr`] that only contains a relay URL, but no direct addresses,
938938
/// as there are no APIs for directly using sockets in browsers.
939939
#[cfg(wasm_browser)]
940-
pub fn node_addr(&self) -> impl n0_watcher::Watcher<Value = Option<NodeAddr>> {
940+
pub fn node_addr(&self) -> impl n0_watcher::Watcher<Value = Option<NodeAddr>> + use<> {
941941
// In browsers, there will never be any direct addresses, so we wait
942942
// for the home relay instead. This makes the `NodeAddr` have *some* way
943943
// of connecting to us.

0 commit comments

Comments
 (0)