fix(walls): contains de-reference

This commit is contained in:
2024-12-28 17:11:26 +02:00
parent dcbe06fb8c
commit 2b3a375c4f
3 changed files with 4 additions and 4 deletions

View File

@@ -178,11 +178,11 @@ impl Walls {
/// assert!(!walls.contains(&EdgeDirection::FLAT_SOUTH));
/// ```
#[inline]
pub fn contains<T>(&self, direction: &T) -> bool
pub fn contains<T>(&self, direction: T) -> bool
where
T: Into<Self> + Copy,
{
self.0 & (*direction).into().0 != 0
self.0 & direction.into().0 != 0
}
/// Returns the raw bit representation of the walls