mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01:00
chore: Remove the WriteToBytes trait
This commit is contained in:
parent
f16e0333e4
commit
737db5668b
@ -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};
|
||||||
|
|
||||||
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user