refactor/polish ~ fix cargo clippy complaints (redundant return variable)

This commit is contained in:
Roy Ivy III 2019-12-28 12:02:33 -06:00
parent 88a45a157b
commit 94c088f452
3 changed files with 4 additions and 7 deletions

View file

@ -493,6 +493,5 @@ fn open_input_peek_reader<'a>(
let mf = MultifileReader::new(inputs);
let pr = PartialReader::new(mf, skip_bytes, read_bytes);
let input = PeekReader::new(pr);
input
PeekReader::new(pr)
}

View file

@ -86,8 +86,7 @@ pub fn arrnum_int_div_step<'a>(
Vec::new()
} else {
let remainder_as_arrnum = unsigned_to_arrnum(bufferval);
let remainder_as_base_arrnum = base_conv_vec(&remainder_as_arrnum, 10, radix_in);
remainder_as_base_arrnum
base_conv_vec(&remainder_as_arrnum, 10, radix_in)
};
rem_out.position += 1 + (traversed - rem_out.replace.len());
break;

View file

@ -216,13 +216,12 @@ impl Formatter for Intf {
if convert_hints.check_past_max || decr_from_max || radix_mismatch {
// radix of in and out is the same.
let segment = String::from(&str_in[begin..end]);
let m = Intf::conv_from_segment(
Intf::conv_from_segment(
&segment,
inprefix.radix_in.clone(),
*field.field_char,
inprefix.sign,
);
m
)
} else {
// otherwise just do a straight string copy.
let mut fmt_prim: FormatPrimitive = Default::default();