fix unecessary reference/dereference
This commit is contained in:
committed by
Bennet Bleßmann
parent
72631b3e0b
commit
ae3019d923
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user