Clippy fixes after updating Rust to v1.66

This commit is contained in:
Louis Dureuil 2022-12-19 14:12:26 +01:00
parent 867279f2a4
commit 869d331680
No known key found for this signature in database
8 changed files with 25 additions and 25 deletions

View file

@ -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)