mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Override fmt_dangling_comments for frequent nodes (#6551)
This commit is contained in:
parent
680d171ae5
commit
fc0c9507d0
3 changed files with 12 additions and 1 deletions
|
@ -780,7 +780,8 @@ where
|
|||
Context: FormatContext,
|
||||
{
|
||||
let mut state = FormatState::new(context);
|
||||
let mut buffer = VecBuffer::with_capacity(arguments.items().len(), &mut state);
|
||||
let mut buffer =
|
||||
VecBuffer::with_capacity(state.context().source_code().as_str().len(), &mut state);
|
||||
|
||||
buffer.write_fmt(arguments)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue