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,
arbitrary_self_types,
int_roundings,
hash_extract_if,
option_take_if
hash_extract_if
)]
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();
trace!(
"Upserting items {:?} for character_id {}",
upserted_items,
char_id.0
upserted_items, char_id.0
);
// When moving inventory items around, foreign key constraints on

View File

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

View File

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

View File

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

View File

@ -451,9 +451,7 @@ impl Economy {
missing_collect += collect - collect_capacity;
trace!(
"missing capacity {:?}/{:?} {:?}",
missing_trade,
amount,
potential_balance,
missing_trade, 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
}
@ -485,9 +483,7 @@ impl Economy {
}
trace!(
"can't carry payment {:?} {:?} {:?}",
g2,
dispatch,
dispatch_capacity
g2, dispatch, dispatch_capacity
);
dispatch = dispatch_capacity;
}
@ -511,10 +507,7 @@ impl Economy {
amount -= buy_target;
trace!(
"deal amount {:?} end_balance {:?} price {:?} left {:?}",
buy_target,
balance,
*price,
amount
buy_target, balance, *price, amount
);
}
}