diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-01 15:28:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-01 15:28:06 +0200 |
| commit | b8b82c3ea4ec154581f57b0d00f08f2fd1d871ce (patch) | |
| tree | d94e3230479fe44dfe347d452423f98a5a1d8a47 /serde_v8/magic/bytestring.rs | |
| parent | 77c25beaa59d64035c20ef59d93ed5a99677bc93 (diff) | |
chore: use Rust 1.62.0 (#15028)
Diffstat (limited to 'serde_v8/magic/bytestring.rs')
| -rw-r--r-- | serde_v8/magic/bytestring.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serde_v8/magic/bytestring.rs b/serde_v8/magic/bytestring.rs index 3efb56f6a..c7c1b9de8 100644 --- a/serde_v8/magic/bytestring.rs +++ b/serde_v8/magic/bytestring.rs @@ -51,9 +51,9 @@ impl FromV8 for ByteString { } let len = v8str.length(); let mut buffer = SmallVec::with_capacity(len); + #[allow(clippy::uninit_vec)] // SAFETY: we set length == capacity (see previous line), // before immediately writing into that buffer and sanity check with an assert - #[allow(clippy::uninit_vec)] unsafe { buffer.set_len(len); let written = v8str.write_one_byte( |
