Skip to content

Commit 597f195

Browse files
authored
Merge pull request #5 from george-hopkins/vecu8
Implement IntoRequestBytes for Vec<u8>
2 parents 8870a2d + 5476905 commit 597f195

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/signature.rs

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ impl IntoRequestBytes for () {
8787
}
8888
}
8989

90+
#[async_trait]
91+
impl IntoRequestBytes for Vec<u8> {
92+
async fn into_request_bytes(self) -> Result<Bytes, Box<dyn Error + Send + Sync>> {
93+
Ok(Bytes::from(self))
94+
}
95+
}
96+
9097
#[async_trait]
9198
impl IntoRequestBytes for Bytes {
9299
async fn into_request_bytes(self) -> Result<Bytes, Box<dyn Error + Send + Sync>> {

0 commit comments

Comments
 (0)