From 787955ab75aff0978d3aea7c5651f6204ea459c4 Mon Sep 17 00:00:00 2001 From: ptrus Date: Wed, 23 Sep 2020 19:17:49 +0200 Subject: [PATCH] serde_bytes removed `From> for ByteBuf` See: https://github.com/serde-rs/bytes/issues/15 --- gateway/src/translator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/translator.rs b/gateway/src/translator.rs index e27929983..5a64c5b23 100644 --- a/gateway/src/translator.rs +++ b/gateway/src/translator.rs @@ -356,7 +356,7 @@ impl Translator { .iter() .map(|addr: ðereum_types::Address| { let bytes: &[u8] = addr; - bytes.to_vec().into() + ByteBuf::from(bytes.to_vec()) }) .collect(), }); @@ -375,7 +375,7 @@ impl Translator { .iter() .map(|topic: ðereum_types::H256| { let bytes: &[u8] = topic; - bytes.to_vec().into() + ByteBuf::from(bytes.to_vec()) }) .collect(), })