Skip to content

Commit

Permalink
Remove unused argument in stdio! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Jul 12, 2023
1 parent 3f818a6 commit e3bdc71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rt/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub use traits::{Read, Write};

macro_rules! stdio {
(
$fn: ident () -> $name: ident, $fd: expr
$fn: ident () -> $name: ident
) => {
#[doc = concat!("Create a new `", stringify!($name), "`.\n\n")]
pub fn $fn<RT: Access>(rt: &RT) -> $name {
Expand All @@ -84,9 +84,9 @@ macro_rules! stdio {
};
}

stdio!(stdin() -> Stdin, libc::STDIN_FILENO);
stdio!(stdout() -> Stdout, libc::STDOUT_FILENO);
stdio!(stderr() -> Stderr, libc::STDERR_FILENO);
stdio!(stdin() -> Stdin);
stdio!(stdout() -> Stdout);
stdio!(stderr() -> Stderr);

/// Macro to implement the [`Read`] trait using the `fd: a10::AsyncFd` field.
macro_rules! impl_read {
Expand Down

0 comments on commit e3bdc71

Please sign in to comment.