make clippy happy 1

This commit is contained in:
mpostma 2020-06-26 22:09:34 +02:00
parent 2019db972d
commit 641d12fb2d
13 changed files with 38 additions and 45 deletions

View file

@ -2,7 +2,7 @@ use crate::{FieldsMap, FieldId, SResult, Error, IndexedPos};
use serde::{Serialize, Deserialize};
use std::collections::{HashMap, HashSet};
#[derive(Clone, Debug, Serialize, Deserialize)]
#[derive(Clone, Debug, Serialize, Deserialize, Default)]
pub struct Schema {
fields_map: FieldsMap,
@ -19,13 +19,8 @@ pub struct Schema {
impl Schema {
pub fn new() -> Schema {
Schema {
fields_map: FieldsMap::default(),
primary_key: None,
ranked: HashSet::new(),
displayed: HashSet::new(),
indexed: Vec::new(),
indexed_map: HashMap::new(),
accept_new_fields: true,
..Default::default()
}
}