mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Remove some trailing commas in write calls (#6666)
This commit is contained in:
parent
8228429a70
commit
8e18f8018f
3 changed files with 3 additions and 3 deletions
|
@ -405,7 +405,7 @@ y = 2
|
|||
z = x + 1";
|
||||
assert_eq!(
|
||||
noqa_mappings(contents),
|
||||
NoqaMapping::from_iter([TextRange::new(TextSize::from(0), TextSize::from(22)),])
|
||||
NoqaMapping::from_iter([TextRange::new(TextSize::from(0), TextSize::from(22))])
|
||||
);
|
||||
|
||||
let contents = "x = 1
|
||||
|
|
|
@ -61,7 +61,7 @@ impl FormatNodeRule<ExprBoolOp> for FormatExprBoolOp {
|
|||
)?;
|
||||
}
|
||||
|
||||
write!(f, [op.format(), space(),])?;
|
||||
write!(f, [op.format(), space()])?;
|
||||
|
||||
FormatValue { value }.fmt(f)?;
|
||||
}
|
||||
|
|
|
@ -943,7 +943,7 @@ pub(crate) fn write_suppressed_clause_header(
|
|||
[verbatim_text(
|
||||
header.range(f.context().source())?,
|
||||
ContainsNewlines::Detect
|
||||
),]
|
||||
)]
|
||||
)?;
|
||||
|
||||
let comments = f.context().comments();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue