Skip to content

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Aug 24, 2025

This makes the code a bit easier to read and smaller.

Some of it was done with this command, and later fixed by hand:

 cargo clippy --workspace --allow-dirty --fix --benches --tests --bins -- -A clippy::all -W clippy::uninlined_format_args

@@ -2824,8 +2824,7 @@ impl OwnedDFA {
}
assert!(
!matches.contains_key(&start_id),
"{:?} is both a start and a match state, which is not allowed",
start_id,
"{start_id:?} is both a start and a match state, which is not allowed",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line exceeds 79 columns. Please follow the convention of surrounding code.

I'm not going to go through and look for every other instance of this. Please fix all of them though. If this is too much tedious work, I'm fine closing this PR.

@nyurik nyurik force-pushed the inline-fmt-arg2 branch 2 times, most recently from 8d772eb to 14a510e Compare August 25, 2025 03:26
This makes the code a bit easier to read and smaller.

Some of it was done with this command, and later fixed by hand:

```
 cargo clippy --workspace --allow-dirty --fix --benches --tests --bins -- -A clippy::all -W clippy::uninlined_format_args
 ```
@nyurik
Copy link
Contributor Author

nyurik commented Aug 25, 2025

Fixed. Do note that there are quiet a few cases of rg '^.{80,}' -g '*.rs'

@BurntSushi
Copy link
Member

I'm aware. It's not a hard rule. Many (not all) of those cases are rustfmt failures, hyperlinks or are otherwise long lines that are difficult to break. While there are many occurrences, they are still the exception, not the norm.

Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BurntSushi BurntSushi merged commit 19172cc into rust-lang:master Aug 25, 2025
18 checks passed
@nyurik nyurik deleted the inline-fmt-arg2 branch August 25, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants