Fix warnings.
This commit is contained in:
parent
8c29cb1e53
commit
1596bf180d
8 changed files with 54 additions and 71 deletions
|
|
@ -13,7 +13,7 @@ where
|
|||
|
||||
loop {
|
||||
input.clear();
|
||||
std::io::stdin().read_line(&mut input);
|
||||
let _ = std::io::stdin().read_line(&mut input);
|
||||
|
||||
let (cmd, arg) = input.trim().split_once(' ').unwrap_or((input.trim(), ""));
|
||||
// dbg!(cmd, arg);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ enum Mode {
|
|||
|
||||
#[derive(ValueEnum, Clone)]
|
||||
enum ProblemCase {
|
||||
simple,
|
||||
Simple,
|
||||
Level1,
|
||||
Level2,
|
||||
Level3,
|
||||
|
|
@ -21,7 +21,7 @@ enum ProblemCase {
|
|||
impl ProblemCase {
|
||||
fn get_problem(&self) -> Problem {
|
||||
match self {
|
||||
ProblemCase::simple => problems::simple(),
|
||||
ProblemCase::Simple => problems::simple(),
|
||||
ProblemCase::Level1 => problems::belt_madness_level_1(),
|
||||
ProblemCase::Level2 => problems::belt_madness_level_2(),
|
||||
ProblemCase::Level3 => problems::belt_madness_level_3(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue