Skip to content

Commit b790e88

Browse files
committed
feat: 更新版本至0.4.3,并修改confirm_write_all方法的可变性
1 parent 146cc95 commit b790e88

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords = ["os", "dma"]
77
license = "MIT"
88
name = "dma-api"
99
repository = "https://github.com/drivercraft/dma-api"
10-
version = "0.4.2"
10+
version = "0.4.3"
1111

1212
[features]
1313
alloc = []

src/dma/alloc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl<T> DVec<T> {
8888
unsafe { core::slice::from_raw_parts_mut(self.inner.addr.as_ptr(), self.len()) }
8989
}
9090

91-
pub fn confirm_write_all(&mut self) {
91+
pub fn confirm_write_all(&self) {
9292
self.inner.confirm_write_all();
9393
}
9494
}

0 commit comments

Comments
 (0)