From c127bc5eea09115a9633013736c3604c3df78dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 27 Mar 2020 04:05:00 +0100 Subject: [PATCH] Address clippy warning --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 473836e..18f6bdd 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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")) } }