diff options
Diffstat (limited to 'src/libstd/rt/thread.rs')
| -rw-r--r-- | src/libstd/rt/thread.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 949d73ecc4f..a3731e0b57a 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -55,13 +55,12 @@ impl Thread { } } - pub fn join(self) { + pub fn join(mut self) { #[fixed_stack_segment]; #[inline(never)]; assert!(!self.joined); - let mut this = self; - unsafe { rust_raw_thread_join(this.raw_thread); } - this.joined = true; + unsafe { rust_raw_thread_join(self.raw_thread); } + self.joined = true; } } |
