Skip to content

Commit

Permalink
fix alloc warnings?
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Mar 20, 2024
1 parent aab09ed commit bf9d34c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/collections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use crate::concurrent_stream::{self, ConcurrentStream, FromStream};
use crate::prelude::*;
use crate::utils::{from_iter, FromIter};
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec::Vec;
use core::future::Ready;

Expand Down
2 changes: 1 addition & 1 deletion src/concurrent_stream/for_each.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::{Consumer, ConsumerState};
use crate::future::FutureGroup;
use futures_lite::StreamExt;
use pin_project::pin_project;

use super::{Consumer, ConsumerState};
use alloc::sync::Arc;
use core::future::Future;
use core::marker::PhantomData;
Expand Down
1 change: 1 addition & 0 deletions src/concurrent_stream/from_concurrent_stream.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::{ConcurrentStream, Consumer, ConsumerState, IntoConcurrentStream};
use crate::future::FutureGroup;
#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::vec::Vec;
use core::future::Future;
use core::pin::Pin;
Expand Down

0 comments on commit bf9d34c

Please sign in to comment.