diff --git a/Cargo.lock b/Cargo.lock index 0e488abec5540..5659820af08ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1213,9 +1213,9 @@ dependencies = [ [[package]] name = "insta" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6593a41c7a73841868772495db7dc1e8ecab43bb5c0b6da2059246c4b506ab60" +checksum = "a1f72d3e19488cf7d8ea52d2fc0f8754fc933398b337cd3cbdb28aaeb35159ef" dependencies = [ "console", "globset", diff --git a/crates/ruff_linter/src/rules/isort/mod.rs b/crates/ruff_linter/src/rules/isort/mod.rs index c2a7d3764c32b..aaaf886308650 100644 --- a/crates/ruff_linter/src/rules/isort/mod.rs +++ b/crates/ruff_linter/src/rules/isort/mod.rs @@ -1143,7 +1143,7 @@ mod tests { }, )?; diagnostics.sort_by_key(Ranged::start); - assert_messages!(*snapshot, diagnostics); + assert_messages!(&*snapshot, diagnostics); Ok(()) }