From a715d5abc4f25bb9c3db46660de93e809aa45552 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Fri, 23 Jul 2021 06:35:03 +0200 Subject: [PATCH] fixing some clippy warnings --- src/cell_dir.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cell_dir.rs b/src/cell_dir.rs index 350fd73..9e08bc9 100644 --- a/src/cell_dir.rs +++ b/src/cell_dir.rs @@ -29,7 +29,7 @@ impl CellDir { #[inline] pub fn is_output(&self) -> bool { - let e = self.to_edge(); + let e = self.as_edge(); e <= 2 } @@ -39,7 +39,7 @@ impl CellDir { } #[inline] - pub fn to_edge(&self) -> u8 { + pub fn as_edge(&self) -> u8 { *self as u8 }