mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	apply most style comments of the review
This commit is contained in:
		| @@ -4,6 +4,7 @@ use std::{ | ||||
|     str::FromStr, | ||||
| }; | ||||
|  | ||||
| use once_cell::sync::Lazy; | ||||
| use regex::Regex; | ||||
| use serde::{Deserialize, Deserializer}; | ||||
|  | ||||
| @@ -132,9 +133,8 @@ impl Settings<Unchecked> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| lazy_static::lazy_static! { | ||||
|     static ref ASC_DESC_REGEX: Regex = Regex::new(r#"(asc|desc)\(([\w_-]+)\)"#).unwrap(); | ||||
| } | ||||
| static ASC_DESC_REGEX: Lazy<Regex> = | ||||
|     Lazy::new(|| Regex::new(r#"(asc|desc)\(([\w_-]+)\)"#).unwrap()); | ||||
|  | ||||
| #[derive(Debug, Deserialize, Clone, PartialEq, Eq)] | ||||
| pub enum Criterion { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user