mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +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
|
@ -35,7 +35,7 @@ pub trait MemoizeFormat<Context> {
|
|||
/// let value = self.value.get();
|
||||
/// self.value.set(value + 1);
|
||||
///
|
||||
/// write!(f, [dynamic_text(&std::format!("Formatted {value} times."), TextSize::from(0))])
|
||||
/// write!(f, [dynamic_text(&std::format!("Formatted {value} times."), None)])
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
@ -114,7 +114,7 @@ where
|
|||
/// write!(f, [
|
||||
/// text("Count:"),
|
||||
/// space(),
|
||||
/// dynamic_text(&std::format!("{current}"), TextSize::default()),
|
||||
/// dynamic_text(&std::format!("{current}"), None),
|
||||
/// hard_line_break()
|
||||
/// ])?;
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue