From cb9dfc1b9421e9814dac3ba6c78bad0d271f9d67 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 9 Mar 2019 16:24:14 +0100 Subject: Obey clippy lints Closes #14 --- dhall/src/normalize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhall/src/normalize.rs') diff --git a/dhall/src/normalize.rs b/dhall/src/normalize.rs index b2ee0f6..c23f887 100644 --- a/dhall/src/normalize.rs +++ b/dhall/src/normalize.rs @@ -175,7 +175,7 @@ where } BinOp(ListAppend, box ListLit(t1, xs), box ListLit(t2, ys)) => { // Drop type annotation if the result is nonempty - let t = if xs.len() == 0 && ys.len() == 0 { + let t = if xs.is_empty() && ys.is_empty() { t1.or(t2) } else { None -- cgit v1.2.3