From 3880e8aa4976d18ff982786cb05ab332d6fedf24 Mon Sep 17 00:00:00 2001 From: ognevnydemon Date: Tue, 13 Feb 2024 14:14:21 +0300 Subject: [PATCH] fmt --- src/num/radix.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/num/radix.rs b/src/num/radix.rs index bef6083..cefe993 100644 --- a/src/num/radix.rs +++ b/src/num/radix.rs @@ -1170,11 +1170,11 @@ impl StringRadix { pub fn from_radix(number: &str, base: u8) -> Result { match base { 0 | 1 | 37.. => Err(RadixError::BaseError(36, base)), - _ => { - RADIX.iter().skip(base.into()).find_map(|&i| - number.contains(i).then(|| Err(RadixError::NumberError(i, base))) - ).map_or(Ok(Self { number: number.to_owned(), base }), |err| err) - }, + _ => RADIX + .iter() + .skip(base.into()) + .find_map(|&i| number.contains(i).then(|| Err(RadixError::NumberError(i, base)))) + .map_or(Ok(Self { number: number.to_owned(), base }), |err| err), } }