fixing some clippy warnings

This commit is contained in:
Weird Constructor 2021-07-23 06:35:03 +02:00
parent cdb054b62c
commit a715d5abc4

View file

@ -29,7 +29,7 @@ impl CellDir {
#[inline] #[inline]
pub fn is_output(&self) -> bool { pub fn is_output(&self) -> bool {
let e = self.to_edge(); let e = self.as_edge();
e <= 2 e <= 2
} }
@ -39,7 +39,7 @@ impl CellDir {
} }
#[inline] #[inline]
pub fn to_edge(&self) -> u8 { pub fn as_edge(&self) -> u8 {
*self as u8 *self as u8
} }