mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 20:40:32 +00:00
commit
7f2a01f16b
@ -241,6 +241,12 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, const N: usize> Default for HistoryBuffer<T, N> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::HistoryBuffer;
|
||||
|
@ -178,6 +178,12 @@ impl<T, const N: usize> MpMcQueue<T, N> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, const N: usize> Default for MpMcQueue<T, N> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl<T, const N: usize> Sync for MpMcQueue<T, N> where T: Send {}
|
||||
|
||||
struct Cell<T> {
|
||||
|
@ -297,6 +297,12 @@ impl<T, const N: usize> Queue<T, N> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, const N: usize> Default for Queue<T, N> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, const N: usize> Clone for Queue<T, N>
|
||||
where
|
||||
T: Clone,
|
||||
|
Loading…
x
Reference in New Issue
Block a user