From 765ea7b6eb09fc0cfda4704190081b8d5cf06539 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 25 Jun 2014 13:12:56 +0200 Subject: [PATCH] std::bool::to_bit was removed --- nl/nl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nl/nl.rs b/nl/nl.rs index 468719d2b..8f8dafccb 100644 --- a/nl/nl.rs +++ b/nl/nl.rs @@ -204,7 +204,7 @@ fn nl (reader: &mut BufferedReader, 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::(odd)] != c { + || settings.section_delimiter[if odd { 1 } else { 0 }] != c { matched_groups = 0; break; }