Fix clippy warnings

Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
This commit is contained in:
Dimitris Apostolou
2025-01-24 19:26:27 +02:00
parent 2cbae68a7f
commit 2c8f6298b8
4 changed files with 13 additions and 17 deletions

View File

@@ -9,9 +9,7 @@ pub struct CommandResult<'a> {
}
pub fn calculate_command_result_size(result: &CommandResult) -> usize {
std::mem::size_of_val(result)
+ result.event_id.as_bytes().len()
+ result.message.as_bytes().len()
std::mem::size_of_val(result) + result.event_id.len() + result.message.len()
}
#[derive(Debug, Eq, PartialEq)]