c77c6a405d
Previously the indetation of a line was compared with the configured number of spaces per tab, which could cause lines that were formatted with hard tabs not to be recognized as indented ("\t".len() < " ".len()). Closes #4152
19 lines
187 B
Rust
19 lines
187 B
Rust
// rustfmt-hard_tabs: true
|
|
|
|
macro_rules! bit {
|
|
($bool:expr) => {
|
|
if $bool {
|
|
1;
|
|
1
|
|
} else {
|
|
0;
|
|
0
|
|
}
|
|
};
|
|
}
|
|
macro_rules! add_one {
|
|
($vec:expr) => {{
|
|
$vec.push(1);
|
|
}};
|
|
}
|