Skip to content

Commit

Permalink
#21 add underscore prefix for CAN2.0 message type trait method
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Sep 11, 2024
1 parent 75615e2 commit 895d312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub trait MessageType<const L: usize> {
pub struct Can20<const L: usize> {}

impl<const L: usize> MessageType<L> for Can20<L> {
fn setup_header(&self, header: &mut TxHeader, payload_length: usize) -> Result<(), MessageError> {
fn setup_header(&self, _header: &mut TxHeader, payload_length: usize) -> Result<(), MessageError> {
if L > 8 || payload_length > 8 {
let max = payload_length.max(L);
debug!("Maximum of 64 bytes allowed. Current size: {max} bytes");
Expand Down

0 comments on commit 895d312

Please sign in to comment.