aboutsummaryrefslogtreecommitdiff
path: root/src/v1_15_2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/v1_15_2.rs')
-rw-r--r--src/v1_15_2.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/v1_15_2.rs b/src/v1_15_2.rs
index 77d01f9..245d20e 100644
--- a/src/v1_15_2.rs
+++ b/src/v1_15_2.rs
@@ -1843,7 +1843,7 @@ impl Deserialize for GameChangeReason {
0x09 => Deserialized::ok(PufferfishSting, data),
0x0A => Deserialized::ok(ElderGuardianMobAppearance, data),
0x0B => Ok(RespawnRequestType::deserialize_with_id(value as u8, data)?.map(move |mode| Respawn(mode))),
- other => Err(DeserializeErr::CannotUnderstandValue(format!(
+ other => Err(DeserializeErr::CannotUnderstandValue(alloc::format!(
"invalid game change reason id {}",
other
))),
@@ -2800,7 +2800,7 @@ impl LightingData {
if update_mask.0 & (1 << i) != 0 {
let Deserialized { value: length, data: rest } = VarInt::mc_deserialize(data)?;
if (length.0 as usize) != LIGHT_DATA_LENGTH {
- return Err(DeserializeErr::CannotUnderstandValue(format!("bad data length in light update {}", length)));
+ return Err(DeserializeErr::CannotUnderstandValue(alloc::format!("bad data length in light update {}", length)));
}
data = rest;
@@ -3419,7 +3419,7 @@ pub mod tests {
fn test_generate_test_cases() {
Packet578::describe().packets.iter().map(move |packet| {
let snake_case = to_snake_case(packet.name.clone());
- format!("packet_test_cases!(Packet578, {}, {},\n test_{}, bench_write_{}, bench_read_{});\n",
+ alloc::format!("packet_test_cases!(Packet578, {}, {},\n test_{}, bench_write_{}, bench_read_{});\n",
packet.name, packet.body_struct, snake_case, snake_case, snake_case).to_owned()
}).for_each(move |line| {
println!("{}", line)