optimizations #161
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user