optimizations #161

Open
emma wants to merge 44 commits from optimizations into main
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 982c67df13 - Show all commits

View File

@ -39,7 +39,7 @@ fn err(argv0: &String, e: String, code: u8) -> ExitCode {
ExitCode::from(code)
}
fn usage(argv0: &str) -> ExitCode {
fn usage(argv0: &String) -> ExitCode {
eprintln!("Usage: {} [-egl] integer integer...", argv0);
ExitCode::from(EX_USAGE)
}

View File

@ -35,12 +35,12 @@ use strerror::StrError;
#[cfg(target_os="openbsd")] extern crate openbsd;
#[cfg(target_os="openbsd")] use openbsd::{ Promises, pledge, unveil };
fn err(argv0: &str, e: Error, code: u8) -> ExitCode {
fn err(argv0: &String, e: Error, code: u8) -> ExitCode {
eprintln!("{}: {}", argv0, e.strerror());
ExitCode::from(code)
}
fn usage(s: &str) -> ExitCode {
fn usage(s: &String) -> ExitCode {
eprintln!("Usage: {} [-w word_size]", s);
ExitCode::from(EX_USAGE)
}