Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Feb 7, 2025
1 parent d93c30b commit 454308e
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/not_implemented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
macro_rules! not_implemented {
($func:ident) => {
/// See the [module comment](self).
pub fn $func() { unimplemented!() }
}
pub fn $func() {
unimplemented!()
}
};
}

/// Memory-allocation functions are out of scope for rustix.
Expand Down Expand Up @@ -79,7 +81,7 @@ pub mod libc_internals {

/// Functions which provide higher-level functionality are out of scope for
/// rustix.
///
///
/// These functions are provided by typical libc implementations, but are
/// higher-level than the simple syscall-like functions that rustix focuses
/// on. They could be implemented as a separate library built on top of rustix,
Expand All @@ -93,11 +95,17 @@ pub mod higher_level {
not_implemented!(gethostbyname);

/// See [rustix-openpty](https://github.com/sunfishcode/rustix-openpty).
pub fn closefrom() { unimplemented!() }
pub fn closefrom() {
unimplemented!()
}
/// See [rustix-openpty](https://github.com/sunfishcode/rustix-openpty).
pub fn login_tty() { unimplemented!() }
pub fn login_tty() {
unimplemented!()
}
/// See [rustix-openpty](https://github.com/sunfishcode/rustix-openpty).
pub fn openpty() { unimplemented!() }
pub fn openpty() {
unimplemented!()
}

/// See [`std::io::IsTerminal`].
///
Expand All @@ -107,7 +115,9 @@ pub mod higher_level {
/// [`std::io::IsTerminal`]: https://doc.rust-lang.org/stable/std/io/trait.IsTerminal.html
/// [is-terminal]: https://crates.io/crates/is-terminal
/// [rustix-is-terminal]: https://github.com/sunfishcode/rustix-is-terminal
pub fn isatty() { unimplemented!() }
pub fn isatty() {
unimplemented!()
}
}

/// These functions are not yet implemented in rustix, but probably could be.
Expand Down Expand Up @@ -166,5 +176,7 @@ pub mod quite_yet {
/// For now, use `rustix::process::uname().nodename()` instead.
///
/// See also the [module comment](self).
pub fn gethostname() { unimplemented!() }
pub fn gethostname() {
unimplemented!()
}
}

0 comments on commit 454308e

Please sign in to comment.