From 37f1b301b54369710979d83ead0c8b3a840f143f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Mon, 11 May 2020 02:45:58 +0200 Subject: [PATCH] Remove unused variable reference --- src/input/specification.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/input/specification.rs b/src/input/specification.rs index f1add07..db5d67e 100644 --- a/src/input/specification.rs +++ b/src/input/specification.rs @@ -31,8 +31,7 @@ where | Some('L') | Some('M') | Some('N') => crate::Domain::Integer, - // TODO: improve error handling - Some(other) => return Err( + Some(_) => return Err( crate::Error::new_variable_name_not_allowed(variable.declaration.name.clone())), None => unreachable!(), };