mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
Implement B023 (function uses loop variable) (#907)
This commit is contained in:
parent
7c78d4e103
commit
7445d00b88
13 changed files with 600 additions and 55 deletions
|
@ -117,7 +117,8 @@ pub fn main(cli: &Cli) -> Result<()> {
|
|||
|
||||
// Construct the output contents.
|
||||
let mut output = String::new();
|
||||
output.push_str("//! File automatically generated by examples/generate_check_code_prefix.rs.");
|
||||
output
|
||||
.push_str("//! File automatically generated by `examples/generate_check_code_prefix.rs`.");
|
||||
output.push('\n');
|
||||
output.push('\n');
|
||||
output.push_str("use serde::{{Serialize, Deserialize}};");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue