diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-09 19:57:08 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-09-12 18:54:11 -0700 |
| commit | 45c62c08f9740dfcdf64c64c8b183acfc22fb3d6 (patch) | |
| tree | 9b07570e252c12f1f20ea7caf151b13ad6a169a6 /src/libstd/os.rs | |
| parent | 761ae0035731ebc5c9e42b331fa86fb0385ad9f1 (diff) | |
| download | rust-45c62c08f9740dfcdf64c64c8b183acfc22fb3d6.tar.gz rust-45c62c08f9740dfcdf64c64c8b183acfc22fb3d6.zip | |
std: rename Option::unwrap_or_default() to unwrap_or()
Diffstat (limited to 'src/libstd/os.rs')
| -rw-r--r-- | src/libstd/os.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index ab1210aabad..95a75b84923 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -611,7 +611,7 @@ pub fn tmpdir() -> Path { if cfg!(target_os = "android") { Path("/data/tmp") } else { - getenv_nonempty("TMPDIR").unwrap_or_default(Path("/tmp")) + getenv_nonempty("TMPDIR").unwrap_or(Path("/tmp")) } } |
