mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-07 10:50:53 -08:00
MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user