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/u16string.rs | |
parent | 77c25beaa59d64035c20ef59d93ed5a99677bc93 (diff) |
chore: use Rust 1.62.0 (#15028)
Diffstat (limited to 'serde_v8/magic/u16string.rs')
-rw-r--r-- | serde_v8/magic/u16string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serde_v8/magic/u16string.rs b/serde_v8/magic/u16string.rs index e304ea187..1e36879a4 100644 --- a/serde_v8/magic/u16string.rs +++ b/serde_v8/magic/u16string.rs @@ -34,9 +34,9 @@ impl FromV8 for U16String { .map_err(|_| Error::ExpectedString)?; let len = v8str.length(); let mut buffer = Vec::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( |