cargo clippy --fix

This commit is contained in:
Henry Schimke
2023-01-27 15:24:24 -06:00
parent 58e6827e89
commit 42d40de755
86 changed files with 196 additions and 335 deletions

View File

@@ -74,8 +74,7 @@ impl Encoder for ASCIIEncoder {
_ => {
return Err(Exceptions::IllegalStateException(Some(format!(
"Illegal mode: {}",
newMode
"Illegal mode: {newMode}"
))));
}
}
@@ -106,8 +105,7 @@ impl ASCIIEncoder {
Ok((num + 130) as char)
} else {
Err(Exceptions::IllegalArgumentException(Some(format!(
"not digits: {}{}",
digit1, digit2
"not digits: {digit1}{digit2}"
))))
}
}