Address clippy warning

This commit is contained in:
Patrick Lühne 2020-03-27 04:05:00 +01:00
parent cb616eba87
commit c127bc5eea
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 1 additions and 1 deletions

View File

@ -67,6 +67,6 @@ impl VariableDeclarationStack
pub fn pop(&mut self) -> Result<(), crate::Error>
{
self.bound_variable_declaration_stack.pop().map(|_| ())
.ok_or(crate::Error::new_logic("variable stack not in expected state"))
.ok_or_else(|| crate::Error::new_logic("variable stack not in expected state"))
}
}