[std::vec] Rename .head_opt() to .head(), drop the old .head() behavior

This commit is contained in:
Simon Sapin
2013-12-23 14:46:54 +01:00
parent d25334d63a
commit add8f9680e
2 changed files with 6 additions and 29 deletions

View File

@@ -666,7 +666,7 @@ impl<'a> Iterator<char> for Normalizations<'a> {
fn next(&mut self) -> Option<char> {
use unicode::decompose::canonical_combining_class;
match self.buffer.head_opt() {
match self.buffer.head() {
Some(&(c, 0)) => {
self.sorted = false;
self.buffer.shift();