mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-06 10:05:45 -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:
@@ -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"
|
||||
|
||||
@@ -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