From b4e8a0566ff8b2c629e21a164ff8a8c2c70d594a Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 10 Apr 2024 10:18:28 +0200 Subject: [PATCH 1/2] Allow dead code in completion example --- examples/completion.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/completion.rs b/examples/completion.rs index 112cc60..d68e372 100644 --- a/examples/completion.rs +++ b/examples/completion.rs @@ -1,3 +1,4 @@ +#![allow(dead_code)] use std::path::PathBuf; use uutils_args::{Arguments, Options, Value}; From c6c24704c960084dda9afe5393ef8095bcf2e6e2 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 10 Apr 2024 10:33:49 +0200 Subject: [PATCH 2/2] Fix "field is never read" warnings --- tests/coreutils/dd.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/coreutils/dd.rs b/tests/coreutils/dd.rs index fe5ef69..8c938d8 100644 --- a/tests/coreutils/dd.rs +++ b/tests/coreutils/dd.rs @@ -102,14 +102,14 @@ impl Options for Settings { self.ibs = b; self.obs = b; } - Arg::Cbs(_) => todo!(), + Arg::Cbs(_b) => todo!(), Arg::Skip(b) => self.skip = b, Arg::Seek(b) => self.seek = b, Arg::Count(n) => self.count = n, Arg::Status(level) => self.status = Some(level), - Arg::Conv(_) => todo!(), - Arg::Iflag(_) => todo!(), - Arg::Oflag(_) => todo!(), + Arg::Conv(_c) => todo!(), + Arg::Iflag(_f) => todo!(), + Arg::Oflag(_f) => todo!(), } } }