diff --git a/src/uu/printf/src/printf.rs b/src/uu/printf/src/printf.rs index cfb0315cf..663411b89 100644 --- a/src/uu/printf/src/printf.rs +++ b/src/uu/printf/src/printf.rs @@ -10,9 +10,9 @@ use std::io::stdout; use std::ops::ControlFlow; use clap::{crate_version, Arg, ArgAction, Command}; -use uucore::error::{UError, UResult, UUsageError}; +use uucore::error::{UResult, UUsageError}; use uucore::format::{parse_spec_and_escape, FormatArgument}; -use uucore::{format_usage, help_about, help_section, help_usage, show}; +use uucore::{format_usage, help_about, help_section, help_usage}; const VERSION: &str = "version"; const HELP: &str = "help"; @@ -49,15 +49,10 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { while args.peek().is_some() { for item in parse_spec_and_escape(format_string.as_ref()) { - match item { - Ok(item) => { - match item.write(stdout(), &mut args)? { - ControlFlow::Continue(()) => {} - ControlFlow::Break(()) => return Ok(()), - }; - } - Err(e) => show!(e), - } + match item?.write(stdout(), &mut args)? { + ControlFlow::Continue(()) => {} + ControlFlow::Break(()) => return Ok(()), + }; } } Ok(()) diff --git a/src/uu/seq/src/number.rs b/src/uu/seq/src/number.rs index 182431a92..314c842ba 100644 --- a/src/uu/seq/src/number.rs +++ b/src/uu/seq/src/number.rs @@ -2,7 +2,7 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore extendedbigdecimal extendedbigint +// spell-checker:ignore extendedbigdecimal use num_traits::Zero; use crate::extendedbigdecimal::ExtendedBigDecimal; diff --git a/src/uu/seq/src/numberparse.rs b/src/uu/seq/src/numberparse.rs index a82d1e887..df7c1f7d1 100644 --- a/src/uu/seq/src/numberparse.rs +++ b/src/uu/seq/src/numberparse.rs @@ -2,7 +2,7 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore extendedbigdecimal extendedbigint bigdecimal numberparse +// spell-checker:ignore extendedbigdecimal bigdecimal numberparse //! Parsing numbers for use in `seq`. //! //! This module provides an implementation of [`FromStr`] for the diff --git a/src/uu/seq/src/seq.rs b/src/uu/seq/src/seq.rs index 053388645..33b7636ed 100644 --- a/src/uu/seq/src/seq.rs +++ b/src/uu/seq/src/seq.rs @@ -2,7 +2,7 @@ // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// spell-checker:ignore (ToDO) istr chiter argptr ilen extendedbigdecimal extendedbigint numberparse +// spell-checker:ignore (ToDO) extendedbigdecimal numberparse use std::io::{stdout, ErrorKind, Write}; use clap::{crate_version, Arg, ArgAction, Command}; diff --git a/src/uucore/src/lib/features/format/num_format.rs b/src/uucore/src/lib/features/format/num_format.rs index 6fd177d13..51f3336cf 100644 --- a/src/uucore/src/lib/features/format/num_format.rs +++ b/src/uucore/src/lib/features/format/num_format.rs @@ -28,7 +28,6 @@ pub enum UnsignedIntVariant { } #[derive(Clone, Copy, Debug)] - pub enum FloatVariant { Decimal, Scientific,