mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
std::bool::to_bit was removed
This commit is contained in:
parent
b3c9fd891e
commit
765ea7b6eb
1 changed files with 1 additions and 1 deletions
2
nl/nl.rs
2
nl/nl.rs
|
@ -204,7 +204,7 @@ fn nl<T: Reader> (reader: &mut BufferedReader<T>, settings: &Settings) {
|
|||
// a header) or the current char does not form part of
|
||||
// a new group, then this line is not a segment indicator.
|
||||
if matched_groups >= 3
|
||||
|| settings.section_delimiter[std::bool::to_bit::<uint>(odd)] != c {
|
||||
|| settings.section_delimiter[if odd { 1 } else { 0 }] != c {
|
||||
matched_groups = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue