From 337ee74b22c2bc12ddef27e6432ebdbfcae4ddee Mon Sep 17 00:00:00 2001 From: ice_iix Date: Thu, 2 Jul 2020 18:11:52 -0700 Subject: [PATCH] Allow verbose bit mask because this is in a performance-critical path, tick(), and it is faster on Intel according to https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask --- src/world/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world/mod.rs b/src/world/mod.rs index ac79281..47bd499 100644 --- a/src/world/mod.rs +++ b/src/world/mod.rs @@ -204,6 +204,7 @@ impl World { self.block_entity_actions.push_back(action); } + #[allow(clippy::verbose_bit_mask)] // "llvm generates better code" for updates_performed & 0xFFF "on x86" pub fn tick(&mut self, m: &mut ecs::Manager) { use std::time::Instant; let start = Instant::now();