Skip to content

Commit 1c57b75

Browse files
committed
Implement Default for ethernet::DesRing
1 parent bd9b8ad commit 1c57b75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ethernet/eth.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ impl<const TD: usize, const RD: usize> DesRing<TD, RD> {
355355
}
356356
}
357357
}
358+
impl<const TD: usize, const RD: usize> Default for DesRing<TD, RD> {
359+
fn default() -> Self {
360+
Self::new()
361+
}
362+
}
358363

359364
///
360365
/// Ethernet DMA

0 commit comments

Comments
 (0)