From 669e7d883b1142a398f7f5f15cf0d0a892a0f0c2 Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Sat, 20 Nov 2021 10:04:12 -0800 Subject: [PATCH] lib: remove unnecesssary Not impl --- lib/src/machine.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/src/machine.rs b/lib/src/machine.rs index e2e805d..752982a 100644 --- a/lib/src/machine.rs +++ b/lib/src/machine.rs @@ -9,16 +9,6 @@ pub enum Tool { On, } -impl std::ops::Not for Tool { - type Output = Self; - fn not(self) -> Self { - match self { - Self::Off => Self::On, - Self::On => Self::Off, - } - } -} - /// The distance mode for movement commands #[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum Distance { @@ -26,16 +16,6 @@ pub enum Distance { Relative, } -impl std::ops::Not for Distance { - type Output = Self; - fn not(self) -> Self { - match self { - Self::Absolute => Self::Relative, - Self::Relative => Self::Absolute, - } - } -} - /// Generic machine state simulation, assuming nothing is known about the machine when initialized. /// This is used to reduce output G-Code verbosity and run repetitive actions. #[derive(Debug, Default, Clone)]