From 27fc4ccc9e13e4013628be5ae2704518e4e6917e Mon Sep 17 00:00:00 2001 From: Simon Berger Date: Tue, 27 Aug 2024 21:30:09 +0000 Subject: [PATCH] Use message name instead of self --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f3a7efb..f5141d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -933,7 +933,8 @@ fn signal_to_payload(mut w: impl Write, signal: &Signal, msg: &Message) -> Resul } writeln!( &mut w, - " .ok_or(CanError::ParameterOutOfRange {{ message_id: Self::MESSAGE_ID }})?;", + " .ok_or(CanError::ParameterOutOfRange {{ message_id: {}::MESSAGE_ID }})?;", + type_name(msg.message_name()) )?; writeln!( &mut w,