mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:37 +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
|
@ -33,7 +33,6 @@ pub mod group_id;
|
|||
pub mod macros;
|
||||
pub mod prelude;
|
||||
pub mod printer;
|
||||
mod utility_types;
|
||||
|
||||
use crate::formatter::Formatter;
|
||||
use crate::group_id::UniqueGroupIdBuilder;
|
||||
|
@ -428,7 +427,7 @@ pub type FormatResult<F> = Result<F, FormatError>;
|
|||
/// fn fmt(&self, f: &mut Formatter<SimpleFormatContext>) -> FormatResult<()> {
|
||||
/// write!(f, [
|
||||
/// hard_line_break(),
|
||||
/// dynamic_text(&self.0, TextSize::from(0)),
|
||||
/// dynamic_text(&self.0, None),
|
||||
/// hard_line_break(),
|
||||
/// ])
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue