I <3 CLIPPY
This commit is contained in:
parent
9d555acae0
commit
0a38903154
2 changed files with 5 additions and 5 deletions
src/interpreter
|
@ -28,8 +28,8 @@ impl Value {
|
|||
/// Check whether a value is truthy or not.
|
||||
pub fn is_truthy(&self) -> bool {
|
||||
match self {
|
||||
&Self::Nil => false,
|
||||
&Self::Boolean(b) => b,
|
||||
Self::Nil => false,
|
||||
Self::Boolean(b) => *b,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue