chore: Make the Document from_raw method private

This commit is contained in:
Clément Renault 2019-02-03 11:13:38 +01:00
parent c5e951be09
commit 94b89c5439
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -18,7 +18,7 @@ pub struct Document {
}
impl Document {
pub fn from_raw(raw: &RawDocument) -> Document {
fn from_raw(raw: &RawDocument) -> Document {
let len = raw.matches.range.len();
let mut matches = Vec::with_capacity(len);