1
Fork 0
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:
Michael Gehring 2014-06-25 13:12:56 +02:00
parent b3c9fd891e
commit 765ea7b6eb

View file

@ -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;
}