refactor/polish ~ fix cargo clippy complaints (unneeded _)

This commit is contained in:
Roy Ivy III 2019-12-28 12:32:49 -06:00
parent 493f5f1496
commit ba5a2435be
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ fn _round_str_from(in_str: &str, position: usize) -> (String, bool) {
'9' => {
rev.push('0');
}
e @ _ => {
e => {
rev.push(((e as u8) + 1) as char);
finished_in_dec = true;
break;

View file

@ -120,7 +120,7 @@ impl UnescapedText {
byte_vec.push(ch as u8);
}
}
e @ _ => {
e => {
// only for hex and octal
// is byte encoding specified.
// otherwise, why not leave the door open