Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ready! macro from futures-core #11

Merged
merged 1 commit into from
Aug 6, 2023
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
10 changes: 1 addition & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@
html_logo_url = "https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png"
)]

macro_rules! ready {
($e: expr) => {
match $e {
Poll::Ready(t) => t,
Poll::Pending => return Poll::Pending,
}
};
}

cfg_if::cfg_if! {
if #[cfg(async_signal_force_pipe_impl)] {
mod pipe;
Expand All @@ -90,6 +81,7 @@ cfg_if::cfg_if! {
}
}

use futures_core::ready;
use futures_core::stream::Stream;
use registry::SigId;

Expand Down
1 change: 1 addition & 0 deletions src/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use crate::Signal;

use async_io::Async;
use futures_core::ready;
use futures_io::AsyncRead;

use std::io::{self, prelude::*};
Expand Down
1 change: 1 addition & 0 deletions src/signalfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ macro_rules! syscall {
use crate::Signal;
use async_io::Async;
use concurrent_queue::ConcurrentQueue;
use futures_core::ready;

use std::fmt;
use std::io;
Expand Down
Loading