Clippy
This commit is contained in:
parent
e32f27494a
commit
cc004df6e8
3 changed files with 8 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue