Make tidy-alphabetical-{start,end}
work more widely.
Don't restrict it to lines that have `//` in them. This means it can be used in `Cargo.toml` files, for example.
This commit is contained in:
parent
cae0791da4
commit
a504c0c605
@ -30,8 +30,8 @@ fn is_close_bracket(c: char) -> bool {
|
||||
}
|
||||
|
||||
// Don't let tidy check this here :D
|
||||
const START_COMMENT: &str = concat!("// tidy-alphabetical", "-start");
|
||||
const END_COMMENT: &str = "// tidy-alphabetical-end";
|
||||
const START_COMMENT: &str = concat!("tidy-alphabetical", "-start");
|
||||
const END_COMMENT: &str = "tidy-alphabetical-end";
|
||||
|
||||
fn check_section<'a>(
|
||||
file: impl Display,
|
||||
|
Loading…
x
Reference in New Issue
Block a user