diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-09-20 02:08:47 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-10-09 09:17:29 -0400 |
| commit | 6a90e80b6240d8213f2b99fa470ef6ee04552d1b (patch) | |
| tree | e7ae38c849741fc9345652311dfa374f36b4be9a /src/libstd/sys.rs | |
| parent | f647ccc79c38c1f80dbdb697900b2ba97e293263 (diff) | |
| download | rust-6a90e80b6240d8213f2b99fa470ef6ee04552d1b.tar.gz rust-6a90e80b6240d8213f2b99fa470ef6ee04552d1b.zip | |
option: rewrite the API to use composition
Diffstat (limited to 'src/libstd/sys.rs')
| -rw-r--r-- | src/libstd/sys.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 25425e07577..ce1be592d79 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -142,7 +142,7 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! { // Be careful not to allocate in this block, if we're failing we may // have been failing due to a lack of memory in the first place... do Local::borrow |task: &mut Task| { - let n = task.name.map(|n| n.as_slice()).unwrap_or("<unnamed>"); + let n = task.name.as_ref().map(|n| n.as_slice()).unwrap_or("<unnamed>"); format_args!(|args| { task.logger.log(args) }, "task '{}' failed at '{}', {}:{}", n, msg.as_slice(), file.as_slice(), line); |
