mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +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 {
|
||||
Self {
|
||||
stream: self.stream.clone(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user