Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ keywords = ["async", "minimal", "executor", "runtime", "block_on"]
repository = "https://github.com/zesterer/pollster"
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
edition = "2018"
rust-version = "1.69"
license = "Apache-2.0/MIT"
readme = "README.md"

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ thread_local! {
pub use pollster_macro::{main, test};

/// An extension trait that allows blocking on a future in suffix position.
pub trait FutureExt: Future {
pub trait FutureExt: IntoFuture {
/// Block the thread until the future is ready.
///
/// # Example
Expand All @@ -42,7 +42,7 @@ pub trait FutureExt: Future {
}
}

impl<F: Future> FutureExt for F {}
impl<F: IntoFuture> FutureExt for F {}

struct Signal {
/// The thread that owns the signal.
Expand Down
Loading