@@ -908,7 +908,7 @@ impl Endpoint {
908
908
/// # }
909
909
/// ```
910
910
#[ cfg( not( wasm_browser) ) ]
911
- pub fn node_addr ( & self ) -> impl n0_watcher:: Watcher < Value = Option < NodeAddr > > + use < > {
911
+ pub fn node_addr ( & self ) -> impl n0_watcher:: Watcher < Value = Option < NodeAddr > > + ' static {
912
912
let watch_addrs = self . direct_addresses ( ) ;
913
913
let watch_relay = self . home_relay ( ) ;
914
914
let node_id = self . node_id ( ) ;
@@ -973,7 +973,7 @@ impl Endpoint {
973
973
/// let _relay_url = mep.home_relay().initialized().await.unwrap();
974
974
/// # });
975
975
/// ```
976
- pub fn home_relay( & self ) -> impl n0_watcher:: Watcher <Value = Vec <RelayUrl >> + use < > {
976
+ pub fn home_relay ( & self ) -> impl n0_watcher:: Watcher < Value = Vec < RelayUrl > > + ' static {
977
977
self . msock . home_relay ( )
978
978
}
979
979
@@ -1043,7 +1043,7 @@ impl Endpoint {
1043
1043
/// # });
1044
1044
/// ```
1045
1045
#[ doc( hidden) ]
1046
- pub fn net_report ( & self ) -> impl Watcher < Value = Option < Report > > + use < > {
1046
+ pub fn net_report ( & self ) -> impl Watcher < Value = Option < Report > > + ' static {
1047
1047
self . msock . net_report ( )
1048
1048
}
1049
1049
@@ -1086,7 +1086,7 @@ impl Endpoint {
1086
1086
/// connection was ever made or is even possible.
1087
1087
///
1088
1088
/// See also [`Endpoint::remote_info`] to only retrieve information about a single node.
1089
- pub fn remote_info_iter ( & self ) -> impl Iterator < Item = RemoteInfo > + use < > {
1089
+ pub fn remote_info_iter ( & self ) -> impl Iterator < Item = RemoteInfo > + ' static {
1090
1090
self . msock . list_remote_infos ( ) . into_iter ( )
1091
1091
}
1092
1092
@@ -1114,7 +1114,7 @@ impl Endpoint {
1114
1114
///
1115
1115
/// [`MdnsDiscovery`]: crate::discovery::mdns::MdnsDiscovery
1116
1116
/// [`StaticProvider`]: crate::discovery::static_provider::StaticProvider
1117
- pub fn discovery_stream ( & self ) -> impl Stream < Item = Result < DiscoveryItem , Lagged > > + use < > {
1117
+ pub fn discovery_stream ( & self ) -> impl Stream < Item = Result < DiscoveryItem , Lagged > > + ' static {
1118
1118
self . msock . discovery_subscribers ( ) . subscribe ( )
1119
1119
}
1120
1120
0 commit comments