We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0044c73 + 8313bbc commit 98670a3Copy full SHA for 98670a3
CHANGELOG.md
@@ -50,6 +50,7 @@
50
- The `Revision` struct's one field is now public.
51
- Renamed `CStr8::to_bytes` to `CStr8::as_bytes` and changed the semantics:
52
The trailing null character is now always included in the returned slice.
53
+- `DevicePathBuilder::with_vec` now clears the `Vec` before use.
54
55
## uefi-macros - [Unreleased]
56
uefi/src/proto/device_path/build.rs
@@ -83,8 +83,11 @@ impl<'a> DevicePathBuilder<'a> {
83
}
84
85
/// Create a builder backed by a `Vec`.
86
+ ///
87
+ /// The `Vec` is cleared before use.
88
#[cfg(feature = "alloc")]
89
pub fn with_vec(v: &'a mut Vec<u8>) -> Self {
90
+ v.clear();
91
Self {
92
storage: BuilderStorage::Vec(v),
93
0 commit comments