mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 00:16:42 +08:00
Clean up some std::io calls
This commit is contained in:
parent
f5712af132
commit
e2a0e1652e
@ -14,7 +14,7 @@ use errno::{errno, set_errno, Errno};
|
|||||||
use libc::{EACCES, ENOENT, ENOTDIR, F_OK, X_OK};
|
use libc::{EACCES, ENOENT, ENOTDIR, F_OK, X_OK};
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::io::{ErrorKind, Write};
|
use std::io::ErrorKind;
|
||||||
use std::os::unix::prelude::*;
|
use std::os::unix::prelude::*;
|
||||||
|
|
||||||
/// Returns the user configuration directory for fish. If the directory or one of its parents
|
/// Returns the user configuration directory for fish. If the directory or one of its parents
|
||||||
@ -169,7 +169,7 @@ fn maybe_issue_path_warning(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let _ = std::io::stdout().write(&[b'\n']);
|
printf!("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Finds the path of an executable named \p cmd, by looking in $PATH taken from \p vars.
|
/// Finds the path of an executable named \p cmd, by looking in $PATH taken from \p vars.
|
||||||
|
@ -1772,7 +1772,7 @@ fn process_clean_after_marking(parser: &Parser, allow_interactive: bool) -> bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
if printed {
|
if printed {
|
||||||
let _ = std::io::stdout().lock().flush();
|
let _ = std::io::stdout().flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
printed
|
printed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user