use full path for pin_mut macro
This commit is contained in:
parent
74b87b904b
commit
506ebec7e4
|
@ -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<String, String> = HashMap::new();
|
||||
|
||||
|
|
Loading…
Reference in New Issue