mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
chore: Make the Document from_raw method private
This commit is contained in:
parent
c5e951be09
commit
94b89c5439
@ -18,7 +18,7 @@ pub struct Document {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Document {
|
impl Document {
|
||||||
pub fn from_raw(raw: &RawDocument) -> Document {
|
fn from_raw(raw: &RawDocument) -> Document {
|
||||||
let len = raw.matches.range.len();
|
let len = raw.matches.range.len();
|
||||||
let mut matches = Vec::with_capacity(len);
|
let mut matches = Vec::with_capacity(len);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user