Skip to content

Commit

Permalink
time: remove Unpin bound on Throttle methods (#5105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed Oct 14, 2022
1 parent 37d1d09 commit bf5eed8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tokio-stream/src/stream_ext/throttle.rs
Expand Up @@ -4,7 +4,6 @@ use crate::Stream;
use tokio::time::{Duration, Instant, Sleep};

use std::future::Future;
use std::marker::Unpin;
use std::pin::Pin;
use std::task::{self, Poll};

Expand Down Expand Up @@ -41,8 +40,7 @@ pin_project! {
}
}

// XXX: are these safe if `T: !Unpin`?
impl<T: Unpin> Throttle<T> {
impl<T> Throttle<T> {
/// Acquires a reference to the underlying stream that this combinator is
/// pulling from.
pub fn get_ref(&self) -> &T {
Expand Down

0 comments on commit bf5eed8

Please sign in to comment.