We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d02da1 commit a8a9863Copy full SHA for a8a9863
crates/ruff_python_formatter/src/expression/expr_name.rs
@@ -1,4 +1,4 @@
1
-use ruff_formatter::{write, FormatContext};
+use ruff_formatter::write;
2
use ruff_python_ast::AnyNodeRef;
3
use ruff_python_ast::ExprName;
4
@@ -11,16 +11,11 @@ pub struct FormatExprName;
11
12
impl FormatNodeRule<ExprName> for FormatExprName {
13
fn fmt_fields(&self, item: &ExprName, f: &mut PyFormatter) -> FormatResult<()> {
14
- let ExprName { id, range, ctx: _ } = item;
15
-
16
- debug_assert_eq!(
17
- id.as_str(),
18
- f.context()
19
- .source_code()
20
- .slice(*range)
21
- .text(f.context().source_code())
22
- );
23
+ let ExprName {
+ id: _,
+ range,
+ ctx: _,
+ } = item;
24
write!(f, [source_text_slice(*range)])
25
}
26
0 commit comments