update toolchain to nightly-2024-07-07

This commit is contained in:
Marcel Märtens 2024-07-09 16:29:33 +02:00
parent 0dc194bb6b
commit a698a7d46e
7 changed files with 14 additions and 27 deletions

View File

@ -13,8 +13,7 @@
extend_one, extend_one,
arbitrary_self_types, arbitrary_self_types,
int_roundings, int_roundings,
hash_extract_if, hash_extract_if
option_take_if
)] )]
pub use common_assets as assets; pub use common_assets as assets;

View File

@ -1 +1 @@
nightly-2024-05-14 nightly-2024-07-07

View File

@ -1116,8 +1116,7 @@ pub fn update(
.unzip(); .unzip();
trace!( trace!(
"Upserting items {:?} for character_id {}", "Upserting items {:?} for character_id {}",
upserted_items, upserted_items, char_id.0
char_id.0
); );
// When moving inventory items around, foreign key constraints on // When moving inventory items around, foreign key constraints on

View File

@ -313,8 +313,7 @@ impl MusicMgr {
} }
trace!( trace!(
"pre-play_random_track: {:?} {:?}", "pre-play_random_track: {:?} {:?}",
self.last_activity, self.last_activity, music_state
music_state
); );
if let Ok(next_activity) = self.play_random_track(audio, state, client, &music_state) { if let Ok(next_activity) = self.play_random_track(audio, state, client, &music_state) {
self.last_activity = next_activity; self.last_activity = next_activity;

View File

@ -116,11 +116,13 @@ impl Interactable {
/// interact with if the interact key is pressed /// interact with if the interact key is pressed
/// Selected in the following order: /// Selected in the following order:
/// 1) Targeted items, in order of nearest under cursor: /// 1) Targeted items, in order of nearest under cursor:
///
/// a) entity (if within range) /// a) entity (if within range)
/// b) collectable /// b) collectable
/// c) can be mined, and is a mine sprite (Air) not a weak rock. /// c) can be mined, and is a mine sprite (Air) not a weak rock.
/// ///
/// 2) outside of targeted cam ray /// 2) outside of targeted cam ray
///
/// -> closest of nearest interactable entity/block /// -> closest of nearest interactable entity/block
pub(super) fn select_interactable( pub(super) fn select_interactable(
client: &Client, client: &Client,

View File

@ -1243,12 +1243,7 @@ fn main() {
} }
trace!( trace!(
"{} {}: uncompressed: {}, {:?} {} {:?}", "{} {}: uncompressed: {}, {:?} {} {:?}",
spiralpos.x, spiralpos.x, spiralpos.y, n, sizes, best_idx, timings
spiralpos.y,
n,
sizes,
best_idx,
timings
); );
for (name, size) in sizes.iter() { for (name, size) in sizes.iter() {
*totals.entry(name).or_default() += size; *totals.entry(name).or_default() += size;

View File

@ -451,9 +451,7 @@ impl Economy {
missing_collect += collect - collect_capacity; missing_collect += collect - collect_capacity;
trace!( trace!(
"missing capacity {:?}/{:?} {:?}", "missing capacity {:?}/{:?} {:?}",
missing_trade, missing_trade, amount, potential_balance,
amount,
potential_balance,
); );
amount = (amount - missing_trade).max(0.0); // you won't be able to transport it from elsewhere either, so don't count multiple times amount = (amount - missing_trade).max(0.0); // you won't be able to transport it from elsewhere either, so don't count multiple times
} }
@ -485,9 +483,7 @@ impl Economy {
} }
trace!( trace!(
"can't carry payment {:?} {:?} {:?}", "can't carry payment {:?} {:?} {:?}",
g2, g2, dispatch, dispatch_capacity
dispatch,
dispatch_capacity
); );
dispatch = dispatch_capacity; dispatch = dispatch_capacity;
} }
@ -511,10 +507,7 @@ impl Economy {
amount -= buy_target; amount -= buy_target;
trace!( trace!(
"deal amount {:?} end_balance {:?} price {:?} left {:?}", "deal amount {:?} end_balance {:?} price {:?} left {:?}",
buy_target, buy_target, balance, *price, amount
balance,
*price,
amount
); );
} }
} }