Fix some minor warnings

This commit is contained in:
Johannes Altmanninger 2024-01-12 12:16:57 +01:00
parent 793fb8f8f6
commit d6c96a0a68
2 changed files with 4 additions and 4 deletions

View file

@ -771,8 +771,8 @@ fn main() {
// File path for debug output.
let mut debug_output = None;
const short_opts: &wstr = L!("+d:hvwicD:");
const long_opts: &[woption] = &[
let short_opts: &wstr = L!("+d:hvwicD:");
let long_opts: &[woption] = &[
wopt(L!("debug"), woption_argument_t::required_argument, 'd'),
wopt(
L!("debug-output"),

View file

@ -310,8 +310,8 @@ fn setup_and_process_keys(continuous_mode: bool, verbose: bool) -> ! {
}
fn parse_flags(continuous_mode: &mut bool, verbose: &mut bool) -> bool {
const short_opts: &wstr = L!("+chvV");
const long_opts: &[woption] = &[
let short_opts: &wstr = L!("+chvV");
let long_opts: &[woption] = &[
wopt(L!("continuous"), woption_argument_t::no_argument, 'c'),
wopt(L!("help"), woption_argument_t::no_argument, 'h'),
wopt(L!("version"), woption_argument_t::no_argument, 'v'),