mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 05:16:47 +00:00
Fix clone implementation for DmaStreamSlice<Dma>
This commit is contained in:
parent
344ce59ca3
commit
d7445c84c7
@ -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 {
|
fn clone(&self) -> Self {
|
||||||
Self {
|
Self {
|
||||||
stream: self.stream.clone(),
|
stream: self.stream.clone(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user