mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Join implicit concatenated strings when they fit on a line (#13663)
This commit is contained in:
parent
e402e27a09
commit
73ee72b665
50 changed files with 3907 additions and 363 deletions
|
@ -8,7 +8,6 @@ use ruff_source_file::Locator;
|
|||
use std::fmt::{Debug, Formatter};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct PyFormatContext<'a> {
|
||||
options: PyFormatOptions,
|
||||
contents: &'a str,
|
||||
|
@ -52,7 +51,6 @@ impl<'a> PyFormatContext<'a> {
|
|||
self.contents
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) fn locator(&self) -> Locator<'a> {
|
||||
Locator::new(self.contents)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue