Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
salsabiljb committed Oct 14, 2024
1 parent 8e21943 commit 6545e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messages/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::errors::Result;
use crate::lib;
use crate::sentence::AisRawData;
use serde::Serialize;
#[cfg(feature = "std")]
use std::fmt;


Expand Down Expand Up @@ -65,7 +66,7 @@ pub enum AisMessage {
BinaryAddressedMessage(binary_addressed::BinaryAddressedMessage),
}


#[cfg(feature = "std")]
impl fmt::Display for AisMessage {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Expand All @@ -90,7 +91,6 @@ impl fmt::Display for AisMessage {
AisMessage::SafetyRelatedAcknowledgment(acknowledgment) => write!(f, "SafetyRelatedAcknowledgment: {:?}", acknowledgment),
AisMessage::LongRangeAisBroadcastMessage(message) => write!(f, "LongRangeAisBroadcastMessage: {:?}", message),
AisMessage::BinaryAddressedMessage(message) => write!(f, "BinaryAddressedMessage: {:?}", message),
_ => write!(f, "Unknown AisMessage"),
}
}
}
Expand Down

0 comments on commit 6545e09

Please sign in to comment.