mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
std::bool::to_bit was removed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user