chore: Remove the WriteToBytes trait

This commit is contained in:
Clément Renault 2019-04-26 15:33:14 +02:00
parent f16e0333e4
commit 737db5668b
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE
2 changed files with 0 additions and 11 deletions

View File

@ -4,8 +4,6 @@ mod automaton;
mod query_builder; mod query_builder;
mod distinct_map; mod distinct_map;
pub mod write_to_bytes;
use std::sync::Arc; use std::sync::Arc;
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};

View File

@ -1,9 +0,0 @@
pub trait WriteToBytes {
fn write_to_bytes(&self, bytes: &mut Vec<u8>);
fn into_bytes(&self) -> Vec<u8> {
let mut bytes = Vec::new();
self.write_to_bytes(&mut bytes);
bytes
}
}