chore(rs): fix clippy warnings

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-07-24 23:07:01 +02:00
parent 2062f120cc
commit 183ebc2891
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -60,7 +60,7 @@ mod math {
return mul(half, half);
}
return mul(half, mul(half, b));
mul(half, mul(half, b))
}
}
@ -97,7 +97,7 @@ mod input {
}
pub fn next<T: FromStr>(&mut self) -> T {
if self.buffer.len() == 0 {
if self.buffer.is_empty() {
let mut input = String::new();
io::stdin().read_line(&mut input).ok();