From 276b8b125d3f60cebab702542b60207429fbb333 Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Mon, 18 Aug 2014 17:52:38 -0700 Subject: Fallout from stabilizing core::option --- src/libunicode/u_str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libunicode') diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs index c71cf5557e3..88f9c2b4ce3 100644 --- a/src/libunicode/u_str.rs +++ b/src/libunicode/u_str.rs @@ -245,7 +245,7 @@ impl<'a> Iterator<&'a str> for Graphemes<'a> { // looking up each character twice. cat = match self.cat { None => gr::grapheme_category(ch), - _ => self.cat.take_unwrap() + _ => self.cat.take().unwrap() }; if match cat { @@ -345,7 +345,7 @@ impl<'a> DoubleEndedIterator<&'a str> for Graphemes<'a> { // cached category, if any cat = match self.catb { None => gr::grapheme_category(ch), - _ => self.catb.take_unwrap() + _ => self.catb.take().unwrap() }; // a matching state machine that runs *backwards* across an input string -- cgit 1.4.1-3-g733a5