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

This commit is contained in:
ice_iix 2020-07-02 18:11:52 -07:00
parent 9cfb686528
commit 337ee74b22
1 changed files with 1 additions and 0 deletions

View File

@ -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();