std: rename Option::unwrap_or_default() to unwrap_or()
This commit is contained in:
parent
761ae00357
commit
45c62c08f9
12 changed files with 18 additions and 19 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue