mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-27 22:04:45 +00:00
Remove source position from FormatElement::DynamicText
(#4619)
This commit is contained in:
parent
85f094f592
commit
6943beee66
20 changed files with 165 additions and 145 deletions
|
@ -67,7 +67,6 @@ mod tests {
|
|||
use insta::assert_snapshot;
|
||||
|
||||
use ruff_testing_macros::fixture;
|
||||
use ruff_text_size::TextSize;
|
||||
use similar::TextDiff;
|
||||
|
||||
use crate::fmt;
|
||||
|
@ -208,7 +207,7 @@ mod tests {
|
|||
while let Some(word) = words.next() {
|
||||
let is_last = words.peek().is_none();
|
||||
let format_word = format_with(|f| {
|
||||
write!(f, [dynamic_text(word, TextSize::default())])?;
|
||||
write!(f, [dynamic_text(word, None)])?;
|
||||
|
||||
if is_last {
|
||||
write!(f, [text("\"")])?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue