This commit is contained in:
John Doty 2024-08-10 06:42:57 -07:00
parent e32f27494a
commit cc004df6e8
3 changed files with 8 additions and 10 deletions

View file

@ -99,8 +99,7 @@ impl Message {
result.put_u16(port.port);
// Port descriptions can be long, let's make sure they're not.
let sliced =
slice_up_to(&port.desc, u16::max_value().into());
let sliced = slice_up_to(&port.desc, u16::MAX.into());
put_string(result, sliced);
}
}