forked from NG-SD-Plugins/PowerTools
cargo fmt
This commit is contained in:
parent
4816279f9e
commit
529664fadc
1 changed files with 12 additions and 6 deletions
|
@ -45,13 +45,21 @@ impl core::fmt::Display for ApiMessage {
|
||||||
Self::OnChargeChange(x) => write!(f, "OnChargeChange({:?})", x),
|
Self::OnChargeChange(x) => write!(f, "OnChargeChange({:?})", x),
|
||||||
Self::PowerVibeCheck => write!(f, "PowerVibeCheck"),
|
Self::PowerVibeCheck => write!(f, "PowerVibeCheck"),
|
||||||
Self::WaitForEmptyQueue(_) => write!(f, "WaitForEmptyQueue"),
|
Self::WaitForEmptyQueue(_) => write!(f, "WaitForEmptyQueue"),
|
||||||
Self::LoadSettings(path, name, variant, variant_name) => write!(f, "LoadSettings({}, {}, {}, {})", path, name, variant, variant_name),
|
Self::LoadSettings(path, name, variant, variant_name) => write!(
|
||||||
Self::LoadVariant(variant, variant_name) => write!(f, "LoadVariant({}, {})", variant, variant_name),
|
f,
|
||||||
|
"LoadSettings({}, {}, {}, {})",
|
||||||
|
path, name, variant, variant_name
|
||||||
|
),
|
||||||
|
Self::LoadVariant(variant, variant_name) => {
|
||||||
|
write!(f, "LoadVariant({}, {})", variant, variant_name)
|
||||||
|
}
|
||||||
Self::LoadMainSettings => write!(f, "LoadMainSettings"),
|
Self::LoadMainSettings => write!(f, "LoadMainSettings"),
|
||||||
Self::LoadSystemSettings => write!(f, "LoadSystemSettings"),
|
Self::LoadSystemSettings => write!(f, "LoadSystemSettings"),
|
||||||
Self::GetLimits(_) => write!(f, "GetLimits"),
|
Self::GetLimits(_) => write!(f, "GetLimits"),
|
||||||
Self::GetProvider(s, _) => write!(f, "GetProvider({})", s),
|
Self::GetProvider(s, _) => write!(f, "GetProvider({})", s),
|
||||||
Self::UploadCurrentVariant(id, user) => write!(f, "UploadCurrentVariant(id: {}, user: {})", id, user),
|
Self::UploadCurrentVariant(id, user) => {
|
||||||
|
write!(f, "UploadCurrentVariant(id: {}, user: {})", id, user)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -392,9 +400,7 @@ impl ApiMessageHandler {
|
||||||
messages.push(msg.to_string());
|
messages.push(msg.to_string());
|
||||||
dirty |= self.process(settings, msg);
|
dirty |= self.process(settings, msg);
|
||||||
}
|
}
|
||||||
if dirty
|
if dirty || dirty_echo {
|
||||||
|| dirty_echo
|
|
||||||
{
|
|
||||||
dirty_echo = dirty; // echo only once
|
dirty_echo = dirty; // echo only once
|
||||||
print_messages(&messages);
|
print_messages(&messages);
|
||||||
// run on_set
|
// run on_set
|
||||||
|
|
Loading…
Reference in a new issue