Commit 139d0c06 authored by Jeff Smits's avatar Jeff Smits

Fixed some clippy warnings, still lots to do

parent 0d6dd42c
......@@ -161,8 +161,7 @@ impl<'a> Eval<'a> for preprocess::Strategy {
.into_iter()
.map(|build_term| build_term.build(context))
.collect::<Result<_>>()?;
let result = sdeft.eval(context, sargs, targs, current);
result
sdeft.eval(context, sargs, targs, current)
}
CallDynamic(ref term_name, ref sargs, ref targs) => {
let strategy_name = context.get_term(term_name)?;
......
......@@ -459,15 +459,15 @@ impl BuildTerm {
annos.unwrap_or_default(),
))
}
} else if let Some(_) = cons.get_application() {
} else if cons.get_application().is_some() {
Err(Error::StrategyFailed)
} else if let Some(_) = cons.get_list() {
} else if cons.get_list().is_some() {
Ok(to_cons_nil_list(context.factory, children.iter().cloned()))
} else if let Some(_) = cons.get_blob() {
} else if cons.get_blob().is_some() {
Err(Error::UnknownBehaviour(
"Blob in build of explode pattern (#) first argument",
))
} else if let Some(_) = cons.get_placeholder() {
} else if cons.get_placeholder().is_some() {
Err(Error::UnknownBehaviour(
"ATerm placeholder in build of explode pattern (#) first argument",
))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment