From 8e5f834625cf8643f050b524b040f93c65cfd446 Mon Sep 17 00:00:00 2001 From: Quentin de Quelen Date: Tue, 8 Jan 2019 18:17:49 +0100 Subject: [PATCH] chore: remove assert on Attribute::new() --- src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fdf19edea..2a241a2ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,9 +105,6 @@ impl WordArea { /// The byte index must not be greater than 2^22 /// and the length not greater than 1024. fn new(byte_index: u32, length: u16) -> Result { - assert!(byte_index & 0b1111_1111_1100_0000_0000_0000_0000 == 0); - assert!(length & 0b1111_1100_0000_0000 == 0); - if byte_index & 0b1111_1111_1100_0000_0000_0000_0000 != 0 { return Err(WordAreaError::ByteIndexTooBig) }