@@ -912,8 +912,7 @@ impl Endpoint {
912
912
///
913
913
/// ```no_run
914
914
/// # async fn wrapper() -> n0_snafu::Result {
915
- /// use iroh::Endpoint;
916
- /// use n0_watcher::Watcher;
915
+ /// use iroh::{Endpoint, Watcher};
917
916
///
918
917
/// let endpoint = Endpoint::builder()
919
918
/// .alpns(vec![b"my-alpn".to_vec()])
@@ -982,9 +981,7 @@ impl Endpoint {
982
981
///
983
982
/// To wait for a home relay connection to be established, use [`Watcher::initialized`]:
984
983
/// ```no_run
985
- /// use iroh::Endpoint;
986
- /// use n0_future::StreamExt;
987
- /// use n0_watcher::Watcher as _;
984
+ /// use iroh::{Endpoint, Watcher};
988
985
///
989
986
/// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap();
990
987
/// # rt.block_on(async move {
@@ -1019,14 +1016,12 @@ impl Endpoint {
1019
1016
///
1020
1017
/// To get the first set of direct addresses use [`Watcher::initialized`]:
1021
1018
/// ```no_run
1022
- /// use iroh::Endpoint;
1023
- /// use n0_future::StreamExt;
1024
- /// use n0_watcher::Watcher as _;
1019
+ /// use iroh::{Endpoint, Watcher as _};
1025
1020
///
1026
1021
/// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap();
1027
1022
/// # rt.block_on(async move {
1028
- /// let mep = Endpoint::builder().bind().await.unwrap();
1029
- /// let _addrs = mep .direct_addresses().initialized().await.unwrap();
1023
+ /// let ep = Endpoint::builder().bind().await.unwrap();
1024
+ /// let _addrs = ep .direct_addresses().initialized().await.unwrap();
1030
1025
/// # });
1031
1026
/// ```
1032
1027
///
@@ -1055,9 +1050,7 @@ impl Endpoint {
1055
1050
///
1056
1051
/// To get the first report use [`Watcher::initialized`]:
1057
1052
/// ```no_run
1058
- /// use iroh::Endpoint;
1059
- /// use n0_future::StreamExt;
1060
- /// use n0_watcher::Watcher as _;
1053
+ /// use iroh::{Endpoint, Watcher as _};
1061
1054
///
1062
1055
/// # let rt = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap();
1063
1056
/// # rt.block_on(async move {
0 commit comments