mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Format code
This commit is contained in:
@ -343,7 +343,7 @@ pub mod policies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct DoubleActionPolicy<const A: u8, const B: u8>;
|
pub struct DoubleActionPolicy<const A: u8, const B: u8>;
|
||||||
|
|
||||||
impl<const A: u8, const B: u8> Policy for DoubleActionPolicy<A, B> {
|
impl<const A: u8, const B: u8> Policy for DoubleActionPolicy<A, B> {
|
||||||
fn authenticate(
|
fn authenticate(
|
||||||
auth: Data<AuthController>,
|
auth: Data<AuthController>,
|
||||||
|
@ -22,10 +22,7 @@ pub struct RenderAggregator {
|
|||||||
impl RenderAggregator {
|
impl RenderAggregator {
|
||||||
#[allow(clippy::field_reassign_with_default)]
|
#[allow(clippy::field_reassign_with_default)]
|
||||||
pub fn from_query(query: &RenderQuery) -> Self {
|
pub fn from_query(query: &RenderQuery) -> Self {
|
||||||
let RenderQuery {
|
let RenderQuery { template, input } = query;
|
||||||
template,
|
|
||||||
input,
|
|
||||||
} = query;
|
|
||||||
|
|
||||||
let mut ret = Self::default();
|
let mut ret = Self::default();
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::common::{shared_index_for_fragments, Server};
|
use crate::common::{shared_index_for_fragments, Server};
|
||||||
use crate::json;
|
use crate::json;
|
||||||
use meili_snap::{snapshot, json_string};
|
use meili_snap::{json_string, snapshot};
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn empty_id() {
|
async fn empty_id() {
|
||||||
@ -465,7 +465,6 @@ async fn both_document_id_and_inline() {
|
|||||||
"#);
|
"#);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn multiple_templates_or_docs() {
|
async fn multiple_templates_or_docs() {
|
||||||
let index = shared_index_for_fragments().await;
|
let index = shared_index_for_fragments().await;
|
||||||
|
Reference in New Issue
Block a user