From c7eea1f2e33ba67480d4367a45559bf8f2bd1e49 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 13 Dec 2025 22:56:59 +0000 Subject: [PATCH] Update debug_assert which pointed at missing method (#21969) ## Summary I assume that the class has been renamed or split since this assertion was created. ## Test Plan Compiled locally, nothing more. Relying on CI given the triviality of this change. --- crates/ruff_diagnostics/src/edit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_diagnostics/src/edit.rs b/crates/ruff_diagnostics/src/edit.rs index 194b4e4494..ae52088608 100644 --- a/crates/ruff_diagnostics/src/edit.rs +++ b/crates/ruff_diagnostics/src/edit.rs @@ -39,7 +39,7 @@ impl Edit { /// Creates an edit that replaces the content in `range` with `content`. pub fn range_replacement(content: String, range: TextRange) -> Self { - debug_assert!(!content.is_empty(), "Prefer `Fix::deletion`"); + debug_assert!(!content.is_empty(), "Prefer `Edit::deletion`"); Self { content: Some(Box::from(content)),