fixing some clippy warnings
This commit is contained in:
parent
cdb054b62c
commit
a715d5abc4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue