From 845eab6f36d8b7fff368ce1afd4a7da7323ef629 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sat, 6 Nov 2021 06:32:34 +0000 Subject: [PATCH] Simplified a bit of code. --- cpp/qrcodegen.cpp | 1 - rust/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/qrcodegen.cpp b/cpp/qrcodegen.cpp index b0f02af..a5536d4 100644 --- a/cpp/qrcodegen.cpp +++ b/cpp/qrcodegen.cpp @@ -27,7 +27,6 @@ #include #include #include -#include #include #include "qrcodegen.hpp" diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 2f6c713..d821910 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -456,7 +456,7 @@ impl QrCode { } data << 12 | rem // uint18 }; - assert!(bits >> 18 == 0, "Assertion error"); + assert_eq!(bits >> 18, 0, "Assertion error"); // Draw two copies for i in 0 .. 18 {