mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-19 02:10:34 +01:00
Removed unnecessary exclusion of Redox in cond-compilation and narrowed what we import from .
This commit is contained in:
parent
715b07599b
commit
6dc704a18e
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ impl<'a> CommandTicket<'a> {
|
||||||
|
|
||||||
/// Executes the command stored within the ticket, and
|
/// Executes the command stored within the ticket, and
|
||||||
/// clearing the command's buffer when finished.'
|
/// clearing the command's buffer when finished.'
|
||||||
#[cfg(not(all(unix, not(target_os = "redox"))))]
|
#[cfg(not(unix))]
|
||||||
pub fn then_execute(self) {
|
pub fn then_execute(self) {
|
||||||
use std::process::Stdio;
|
use std::process::Stdio;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
@ -63,9 +63,9 @@ impl<'a> CommandTicket<'a> {
|
||||||
self.command.clear();
|
self.command.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(unix, not(target_os = "redox")))]
|
#[cfg(all(unix))]
|
||||||
pub fn then_execute(self) {
|
pub fn then_execute(self) {
|
||||||
use libc::*;
|
use libc::{close, dup2, pipe, STDERR_FILENO, STDOUT_FILENO};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::os::unix::process::CommandExt;
|
use std::os::unix::process::CommandExt;
|
||||||
use std::os::unix::io::FromRawFd;
|
use std::os::unix::io::FromRawFd;
|
||||||
|
|
Loading…
Reference in a new issue