diff --git a/src/api/about.rs b/src/api/about.rs index c5b4def..328b803 100644 --- a/src/api/about.rs +++ b/src/api/about.rs @@ -13,7 +13,6 @@ use std::collections::HashMap; use async_std::stream::{Stream, StreamExt}; -use futures::pin_mut; use crate::{ api::get_subset::{SubsetQuery, SubsetQueryOptions}, @@ -30,7 +29,6 @@ impl Sbot { /// /// ```rust /// use async_std::stream::{Stream, StreamExt}; - /// use futures::pin_mut; /// use golgi::{Sbot, GolgiError}; /// /// async fn about_message_stream() -> Result<(), GolgiError> { @@ -41,7 +39,7 @@ impl Sbot { /// let about_message_stream = sbot_client.get_about_message_stream(ssb_id).await?; /// /// // Make the stream into an iterator. - /// pin_mut!(about_message_stream); + /// futures::pin_mut!(about_message_stream); /// /// about_message_stream.for_each(|msg| { /// match msg { @@ -118,7 +116,7 @@ impl Sbot { // now we have a stream of about messages with most recent at the front // of the vector - pin_mut!(about_message_stream); + futures::pin_mut!(about_message_stream); // iterate through the vector looking for most recent about message with // the given key @@ -291,7 +289,7 @@ impl Sbot { // of the vector // `pin_mut!` is needed for iteration - pin_mut!(about_message_stream); + futures::pin_mut!(about_message_stream); let mut profile_info: HashMap = HashMap::new();