mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-17 10:41:03 +00:00
printf: rustfmt pass
This commit is contained in:
parent
9242ba1db6
commit
5f88dfe12b
18 changed files with 1266 additions and 1345 deletions
|
|
@ -7,12 +7,12 @@ use std::env;
|
|||
pub static EXIT_OK: i32 = 0;
|
||||
pub static EXIT_ERR: i32 = 1;
|
||||
|
||||
pub fn err_msg(msg:&str) {
|
||||
pub fn err_msg(msg: &str) {
|
||||
let exe_path = match env::current_exe() {
|
||||
Ok(p) => p.to_string_lossy().into_owned(),
|
||||
_ => String::from("")
|
||||
_ => String::from(""),
|
||||
};
|
||||
writeln!(&mut stderr(),"{}: {}", exe_path, msg).unwrap();
|
||||
writeln!(&mut stderr(), "{}: {}", exe_path, msg).unwrap();
|
||||
}
|
||||
|
||||
// by default stdout only flushes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue