@@ -911,7 +911,7 @@ impl Endpoint {
911
911
/// # }
912
912
/// ```
913
913
#[ cfg( not( wasm_browser) ) ]
914
- pub fn node_addr ( & self ) -> impl n0_watcher:: Watcher < Value = Option < NodeAddr > > + ' static {
914
+ pub fn node_addr ( & self ) -> impl n0_watcher:: Watcher < Value = Option < NodeAddr > > + use < > {
915
915
let watch_addrs = self . direct_addresses ( ) ;
916
916
let watch_relay = self . home_relay ( ) ;
917
917
let node_id = self . node_id ( ) ;
@@ -976,7 +976,7 @@ impl Endpoint {
976
976
/// let _relay_url = mep.home_relay().initialized().await.unwrap();
977
977
/// # });
978
978
/// ```
979
- pub fn home_relay ( & self ) -> impl n0_watcher:: Watcher < Value = Vec < RelayUrl > > + ' static {
979
+ pub fn home_relay( & self ) -> impl n0_watcher:: Watcher <Value = Vec <RelayUrl >> + use < > {
980
980
self . msock . home_relay ( )
981
981
}
982
982
@@ -1046,7 +1046,7 @@ impl Endpoint {
1046
1046
/// # });
1047
1047
/// ```
1048
1048
#[ doc( hidden) ]
1049
- pub fn net_report ( & self ) -> impl Watcher < Value = Option < Report > > + ' static {
1049
+ pub fn net_report ( & self ) -> impl Watcher < Value = Option < Report > > + use < > {
1050
1050
self . msock . net_report ( )
1051
1051
}
1052
1052
@@ -1089,7 +1089,7 @@ impl Endpoint {
1089
1089
/// connection was ever made or is even possible.
1090
1090
///
1091
1091
/// See also [`Endpoint::remote_info`] to only retrieve information about a single node.
1092
- pub fn remote_info_iter ( & self ) -> impl Iterator < Item = RemoteInfo > + ' static {
1092
+ pub fn remote_info_iter ( & self ) -> impl Iterator < Item = RemoteInfo > + use < > {
1093
1093
self . msock . list_remote_infos ( ) . into_iter ( )
1094
1094
}
1095
1095
@@ -1117,7 +1117,7 @@ impl Endpoint {
1117
1117
///
1118
1118
/// [`MdnsDiscovery`]: crate::discovery::mdns::MdnsDiscovery
1119
1119
/// [`StaticProvider`]: crate::discovery::static_provider::StaticProvider
1120
- pub fn discovery_stream ( & self ) -> impl Stream < Item = Result < DiscoveryItem , Lagged > > + ' static {
1120
+ pub fn discovery_stream ( & self ) -> impl Stream < Item = Result < DiscoveryItem , Lagged > > + use < > {
1121
1121
self . msock . discovery_subscribers ( ) . subscribe ( )
1122
1122
}
1123
1123
0 commit comments