We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffc535 commit 7cb43c4Copy full SHA for 7cb43c4
src/dma/cache.rs
@@ -1,3 +1,4 @@
1
+#[cfg(feature = "ptp")]
2
use crate::ptp::Timestamp;
3
4
use super::PacketId;
@@ -52,6 +53,8 @@ impl Cache {
52
53
}
54
55
56
+ // NOTE(unused): this function is not used if not(feature = "ptp")
57
+ #[allow(unused)]
58
pub fn id(&self) -> Option<PacketId> {
59
if self.has_packet_id {
60
Some(self.packet_id)
src/dma/rx/f_series_descriptor.rs
@@ -52,8 +52,6 @@ impl RxDescriptor {
desc: RawDescriptor::new(),
last: false,
cache: Cache::new(),
- #[cfg(not(feature = "ptp"))]
- _padding: [0u8; 4],
0 commit comments