cleanup
This commit is contained in:
parent
9b7344cadb
commit
00b6dcfcdc
1 changed files with 7 additions and 11 deletions
18
src/lib.rs
18
src/lib.rs
|
@ -1,9 +1,5 @@
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
pub fn add(left: usize, right: usize) -> usize {
|
|
||||||
left + right
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
||||||
|
@ -147,17 +143,17 @@ impl StateMachine {
|
||||||
|
|
||||||
fn get_discrim(&self) -> u8 {
|
fn get_discrim(&self) -> u8 {
|
||||||
match self {
|
match self {
|
||||||
StateMachine::Uwu { left } => 0,
|
StateMachine::Uwu { left: _ } => 0,
|
||||||
StateMachine::CatgirlNonsense(_) => 1,
|
StateMachine::CatgirlNonsense(_) => 1,
|
||||||
StateMachine::Nyaaaaaaa(_) => 2,
|
StateMachine::Nyaaaaaaa(_) => 2,
|
||||||
StateMachine::Blush(_) => 3,
|
StateMachine::Blush(_) => 3,
|
||||||
StateMachine::ColonThree { left } => 4,
|
StateMachine::ColonThree { left: _ } => 4,
|
||||||
StateMachine::Actions { left } => 5,
|
StateMachine::Actions { left: _ } => 5,
|
||||||
StateMachine::Keysmash { machine, left } => 6,
|
StateMachine::Keysmash { machine: _, left: _ } => 6,
|
||||||
StateMachine::Screaming { left } => 7,
|
StateMachine::Screaming { left: _ } => 7,
|
||||||
StateMachine::Scrunkly(_) => 8,
|
StateMachine::Scrunkly(_) => 8,
|
||||||
StateMachine::Owo { left } => 9,
|
StateMachine::Owo { left: _ } => 9,
|
||||||
StateMachine::Space { prev } => 10,
|
StateMachine::Space { prev: _ } => 10,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue