mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
fmt
This commit is contained in:
parent
1eb9fe8562
commit
41eeffd88d
7 changed files with 18 additions and 25 deletions
|
@ -1,13 +1,13 @@
|
|||
mod v1_12;
|
||||
|
||||
use std::path::Path;
|
||||
use std::{fs, io};
|
||||
|
||||
use meili_snap::snapshot;
|
||||
use meilisearch::Opt;
|
||||
|
||||
use crate::common::{default_settings, Server};
|
||||
|
||||
use std::path::Path;
|
||||
use std::{fs, io};
|
||||
|
||||
fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()> {
|
||||
fs::create_dir_all(&dst)?;
|
||||
for entry in fs::read_dir(src)? {
|
||||
|
|
|
@ -6,11 +6,9 @@ use manifest_dir_macros::exist_relative_path;
|
|||
use meili_snap::{json_string, snapshot};
|
||||
use meilisearch::Opt;
|
||||
|
||||
use crate::{
|
||||
common::{default_settings, Server, Value},
|
||||
json,
|
||||
upgrade::copy_dir_all,
|
||||
};
|
||||
use crate::common::{default_settings, Server, Value};
|
||||
use crate::json;
|
||||
use crate::upgrade::copy_dir_all;
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn import_v1_12_0() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue