mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
Replace format!
without parameters with .to_string()
(#14090)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
parent
6dabf045c3
commit
a7a78f939c
69 changed files with 126 additions and 135 deletions
|
@ -55,11 +55,11 @@ impl Violation for TripleSingleQuotes {
|
|||
}
|
||||
|
||||
fn fix_title(&self) -> Option<String> {
|
||||
let TripleSingleQuotes { expected_quote } = self;
|
||||
Some(match expected_quote {
|
||||
Quote::Double => format!("Convert to triple double quotes"),
|
||||
Quote::Single => format!("Convert to triple single quotes"),
|
||||
})
|
||||
let title = match self.expected_quote {
|
||||
Quote::Double => "Convert to triple double quotes",
|
||||
Quote::Single => "Convert to triple single quotes",
|
||||
};
|
||||
Some(title.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue