about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-09-09 19:57:08 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-09-12 18:54:11 -0700
commit45c62c08f9740dfcdf64c64c8b183acfc22fb3d6 (patch)
tree9b07570e252c12f1f20ea7caf151b13ad6a169a6 /src/libextra
parent761ae0035731ebc5c9e42b331fa86fb0385ad9f1 (diff)
downloadrust-45c62c08f9740dfcdf64c64c8b183acfc22fb3d6.tar.gz
rust-45c62c08f9740dfcdf64c64c8b183acfc22fb3d6.zip
std: rename Option::unwrap_or_default() to unwrap_or()
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/glob.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/glob.rs b/src/libextra/glob.rs
index 07386b41caa..984a09aed3e 100644
--- a/src/libextra/glob.rs
+++ b/src/libextra/glob.rs
@@ -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() {