MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.8.4"
rand = "0.8.4"

View File

@@ -24,7 +24,7 @@
use rand::Rng;
use std::io;
use std::cmp::Ordering;
// Rust haven't log2 in the standard library so I added fn log_2
// Rust haven't log2 in the standard library so I added fn log_2
const fn num_bits<T>() -> usize { std::mem::size_of::<T>() * 8 }
fn main() {
@@ -94,7 +94,7 @@ fn set_limit() -> i64 {
if inp >= 2 {
inp
}
}
else {
set_limit()
}