Extend RET503 autofixes to "end of statement", including comments (#3324)
This commit is contained in:
@@ -16,8 +16,8 @@ pub struct Args {
|
||||
|
||||
pub fn main(args: &Args) -> Result<()> {
|
||||
let contents = fs::read_to_string(&args.file)?;
|
||||
for (_, tok, _) in lexer::lex(&contents, Mode::Module).flatten() {
|
||||
println!("{tok:#?}");
|
||||
for (start, tok, end) in lexer::lex(&contents, Mode::Module).flatten() {
|
||||
println!("{start:#?} {tok:#?} {end:#?}");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user