Clean up some std::io calls

This commit is contained in:
Johannes Altmanninger 2023-12-05 08:44:51 +01:00
parent f5712af132
commit e2a0e1652e
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ use errno::{errno, set_errno, Errno};
use libc::{EACCES, ENOENT, ENOTDIR, F_OK, X_OK};
use once_cell::sync::Lazy;
use std::ffi::OsStr;
use std::io::{ErrorKind, Write};
use std::io::ErrorKind;
use std::os::unix::prelude::*;
/// 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.

View file

@ -1772,7 +1772,7 @@ fn process_clean_after_marking(parser: &Parser, allow_interactive: bool) -> bool
}
if printed {
let _ = std::io::stdout().lock().flush();
let _ = std::io::stdout().flush();
}
printed