From 00b6dcfcdc3bd0ccbbf767097b46baf8ad61cd3d Mon Sep 17 00:00:00 2001 From: Skye Date: Fri, 6 Jan 2023 22:40:00 +0900 Subject: [PATCH] cleanup --- src/lib.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d48a3d6..3fea7ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,5 @@ #![no_std] -pub fn add(left: usize, right: usize) -> usize { - left + right -} - #[cfg(test)] mod tests { @@ -147,17 +143,17 @@ impl StateMachine { fn get_discrim(&self) -> u8 { match self { - StateMachine::Uwu { left } => 0, + StateMachine::Uwu { left: _ } => 0, StateMachine::CatgirlNonsense(_) => 1, StateMachine::Nyaaaaaaa(_) => 2, StateMachine::Blush(_) => 3, - StateMachine::ColonThree { left } => 4, - StateMachine::Actions { left } => 5, - StateMachine::Keysmash { machine, left } => 6, - StateMachine::Screaming { left } => 7, + StateMachine::ColonThree { left: _ } => 4, + StateMachine::Actions { left: _ } => 5, + StateMachine::Keysmash { machine: _, left: _ } => 6, + StateMachine::Screaming { left: _ } => 7, StateMachine::Scrunkly(_) => 8, - StateMachine::Owo { left } => 9, - StateMachine::Space { prev } => 10, + StateMachine::Owo { left: _ } => 9, + StateMachine::Space { prev: _ } => 10, } }