mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Clippy fixes after updating Rust to v1.66
This commit is contained in:
parent
867279f2a4
commit
869d331680
8 changed files with 25 additions and 25 deletions
|
@ -29,7 +29,7 @@ pub fn default_snapshot_settings_for_test<'a>(
|
|||
let test_name = test_name.strip_suffix("::{{closure}}").unwrap_or(test_name);
|
||||
let test_name = test_name.rsplit("::").next().unwrap().to_owned();
|
||||
|
||||
let path = Path::new("snapshots").join(filename).join(&test_name);
|
||||
let path = Path::new("snapshots").join(filename).join(test_name);
|
||||
settings.set_snapshot_path(path.clone());
|
||||
let snap_name = if let Some(name) = name {
|
||||
Cow::Borrowed(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue