diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-05-10 22:36:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-10 22:36:40 +0200 |
| commit | 30841a17052af26995d35c6b409f4f6b8d5251bc (patch) | |
| tree | 1a28af5cfd86efe28dcdca8f407d94c97ac53ace /serde_v8 | |
| parent | abf72c5b375205b1d7d3565c7660ef70e464c45d (diff) | |
cleanup(ext/http): simpler http write ops (#14552)
Facilitates making `op_http_write_headers` sync and thus faster
Diffstat (limited to 'serde_v8')
| -rw-r--r-- | serde_v8/magic/bytestring.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/serde_v8/magic/bytestring.rs b/serde_v8/magic/bytestring.rs index a4c664b29..d6f3cb174 100644 --- a/serde_v8/magic/bytestring.rs +++ b/serde_v8/magic/bytestring.rs @@ -46,3 +46,10 @@ impl FromV8 for ByteString { Ok(buffer.into()) } } + +#[allow(clippy::from_over_into)] +impl Into<Vec<u8>> for ByteString { + fn into(self) -> Vec<u8> { + self.0 + } +} |
