Minor refactoring

This commit is contained in:
Patrick Lühne 2020-04-17 03:30:32 +02:00
parent 63c1931e30
commit 0e78e4ea57
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

View File

@ -269,9 +269,8 @@ fn quantified_formula<'i, 'b, 'v>(i: &'i str, d: &Declarations,
return Err(nom::Err::Failure((i, nom::error::ErrorKind::Many1))); return Err(nom::Err::Failure((i, nom::error::ErrorKind::Many1)));
} }
let v2 = crate::VariableDeclarationStackLayer::Bound( let v2 = crate::VariableDeclarationStackLayer::bound(v,
crate::BoundVariableDeclarations::new(v, std::rc::Rc::clone(&variable_declarations));
std::rc::Rc::clone(&variable_declarations)));
let (i, argument) = formula_precedence_0(i, d, &v2)?; let (i, argument) = formula_precedence_0(i, d, &v2)?;