all: address clippy lints
This commit is contained in:
parent
6e5d8f530c
commit
43bb787d52
1 changed files with 16 additions and 8 deletions
|
|
@ -740,20 +740,28 @@ macro_rules! ei_object_base {
|
|||
|
||||
macro_rules! logical_to_client_wire_scale {
|
||||
($client:expr, $($field:expr),+ $(,)?) => {
|
||||
if let Some(scale) = $client.wire_scale.get() {
|
||||
$(
|
||||
$field = $field * scale;
|
||||
)+
|
||||
#[expect(clippy::allow_attributes)]
|
||||
{
|
||||
#[allow(clippy::assign_op_pattern)]
|
||||
if let Some(scale) = $client.wire_scale.get() {
|
||||
$(
|
||||
$field = $field * scale;
|
||||
)+
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! client_wire_scale_to_logical {
|
||||
($client:expr, $($field:expr),+ $(,)?) => {
|
||||
if let Some(scale) = $client.wire_scale.get() {
|
||||
$(
|
||||
$field = $field / scale;
|
||||
)+
|
||||
#[expect(clippy::allow_attributes)]
|
||||
{
|
||||
#[allow(clippy::assign_op_pattern)]
|
||||
if let Some(scale) = $client.wire_scale.get() {
|
||||
$(
|
||||
$field = $field / scale;
|
||||
)+
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue