From 737db5668b4aec61b18b79088c35b8f83383fc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 26 Apr 2019 15:33:14 +0200 Subject: [PATCH] chore: Remove the WriteToBytes trait --- meilidb-core/src/lib.rs | 2 -- meilidb-core/src/write_to_bytes.rs | 9 --------- 2 files changed, 11 deletions(-) delete mode 100644 meilidb-core/src/write_to_bytes.rs diff --git a/meilidb-core/src/lib.rs b/meilidb-core/src/lib.rs index 6d527e381..783740b1b 100644 --- a/meilidb-core/src/lib.rs +++ b/meilidb-core/src/lib.rs @@ -4,8 +4,6 @@ mod automaton; mod query_builder; mod distinct_map; -pub mod write_to_bytes; - use std::sync::Arc; use serde::{Serialize, Deserialize}; diff --git a/meilidb-core/src/write_to_bytes.rs b/meilidb-core/src/write_to_bytes.rs deleted file mode 100644 index 4837eb6a3..000000000 --- a/meilidb-core/src/write_to_bytes.rs +++ /dev/null @@ -1,9 +0,0 @@ -pub trait WriteToBytes { - fn write_to_bytes(&self, bytes: &mut Vec); - - fn into_bytes(&self) -> Vec { - let mut bytes = Vec::new(); - self.write_to_bytes(&mut bytes); - bytes - } -}