Fix clone implementation for DmaStreamSlice<Dma>

This commit is contained in:
Fabing Li 2025-01-15 08:07:47 +00:00 committed by Junyang Zhang
parent 344ce59ca3
commit d7445c84c7

View File

@ -346,7 +346,7 @@ impl<Dma: AsRef<DmaStream>> HasPaddr for DmaStreamSlice<Dma> {
}
}
impl Clone for DmaStreamSlice<DmaStream> {
impl<Dma: AsRef<DmaStream> + Clone> Clone for DmaStreamSlice<Dma> {
fn clone(&self) -> Self {
Self {
stream: self.stream.clone(),