fix unecessary reference/dereference

This commit is contained in:
Bennet Bleßmann
2025-07-31 21:31:34 +02:00
committed by Bennet Bleßmann
parent 72631b3e0b
commit ae3019d923
9 changed files with 16 additions and 16 deletions

View File

@@ -858,9 +858,9 @@ impl Term {
}
pub fn name(&self) -> Option<Atom> {
match self {
&Term::Literal(_, Literal::Atom(atom)) => Some(atom),
&Term::Clause(_, atom, ..) => Some(atom),
match *self {
Term::Literal(_, Literal::Atom(atom)) => Some(atom),
Term::Clause(_, atom, ..) => Some(atom),
_ => None,
}
}