mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-23 09:19:39 +00:00
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.
This commit is contained in:
parent
be8eb92946
commit
c7eea1f2e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue