From 68b0d34a65c07a7a083485634cb1211c6af1995a Mon Sep 17 00:00:00 2001 From: Ben Wallis Date: Thu, 17 Jun 2021 21:36:24 +0100 Subject: [PATCH] tidy --- common/src/clock.rs | 3 +-- common/src/comp/inventory/item/mod.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/clock.rs b/common/src/clock.rs index 60dcb3eda4..0eed375d95 100644 --- a/common/src/clock.rs +++ b/common/src/clock.rs @@ -85,8 +85,7 @@ impl Clock { .map_or(self.last_dt.as_secs_f32(), |t| t.into_inner()), ); if self.last_dts.len() >= NUMBER_OF_DELTAS_COMPARED && self.last_dt > 2 * stable_dt { - //tracing::debug!(?self.last_dt, ?self.total_tick_time, "lag spike detected, - // unusually slow tick"); + tracing::debug!(?self.last_dt, ?self.total_tick_time, "lag spike detected, unusually slow tick"); stable_dt } else { self.last_dt diff --git a/common/src/comp/inventory/item/mod.rs b/common/src/comp/inventory/item/mod.rs index fdda0b21bc..d246a16039 100644 --- a/common/src/comp/inventory/item/mod.rs +++ b/common/src/comp/inventory/item/mod.rs @@ -655,7 +655,6 @@ impl Item { ability_map, msm, ); - new_item.set_amount(self.amount()).expect( "`new_item` has the same `item_def` and as an invariant, \ self.set_amount(self.amount()) should always succeed.",