mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-02 10:05:05 +08: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…
Reference in New Issue
Block a user