PR review 2

Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
Ville Lindholm 2025-06-02 10:06:03 +03:00
parent bc72d7e536
commit 74557e352d
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -95,10 +95,7 @@ where
}
fn is_primitive(&self) -> bool {
match self {
Some(expr) => expr.is_primitive(),
None => false,
}
self.as_ref().is_some_and(|t| T::is_primitive(t))
}
}