mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Memoize text width (#6552)
This commit is contained in:
parent
fa6bff0078
commit
5f59101811
14 changed files with 213 additions and 184 deletions
|
@ -129,7 +129,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_nesting() {
|
||||
let mut context = FormatState::new(());
|
||||
let mut context = FormatState::new(SimpleFormatContext::default());
|
||||
let mut buffer = VecBuffer::new(&mut context);
|
||||
|
||||
write!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue