std: rename Option::unwrap_or_default() to unwrap_or()

This commit is contained in:
Erick Tryzelaar 2013-09-09 19:57:08 -07:00
parent 761ae00357
commit 45c62c08f9
12 changed files with 18 additions and 19 deletions

View file

@ -312,7 +312,7 @@ impl Pattern {
let require_literal = |c| {
(options.require_literal_separator && is_sep(c)) ||
(options.require_literal_leading_dot && c == '.'
&& is_sep(prev_char.unwrap_or_default('/')))
&& is_sep(prev_char.unwrap_or('/')))
};
for (ti, token) in self.tokens.slice_from(i).iter().enumerate() {