mirror of https://github.com/astral-sh/ruff
Update debug_assert which pointed at missing method
I assume that the class has been renamed or split since this assertion was created.
This commit is contained in:
parent
be8eb92946
commit
c5edceef38
|
|
@ -39,7 +39,7 @@ impl Edit {
|
||||||
|
|
||||||
/// Creates an edit that replaces the content in `range` with `content`.
|
/// Creates an edit that replaces the content in `range` with `content`.
|
||||||
pub fn range_replacement(content: String, range: TextRange) -> Self {
|
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 {
|
Self {
|
||||||
content: Some(Box::from(content)),
|
content: Some(Box::from(content)),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue