summary refs log tree commit diff
path: root/src/libstd/thread.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-03-07 18:08:48 -0800
committerRicho Healey <richo@psych0tik.net>2015-03-09 07:54:19 -0700
commit061d84399e66dc3d47c567370b71e047202ba60f (patch)
tree4f6c6b638144dab0c537cbe9f7856595c9f79fea /src/libstd/thread.rs
parent14ce607d9b96ab3c8d5564bcddd553d6f8e175c7 (diff)
downloadrust-061d84399e66dc3d47c567370b71e047202ba60f.tar.gz
rust-061d84399e66dc3d47c567370b71e047202ba60f.zip
remove uses of as_slice where deref coercions can be used
Diffstat (limited to 'src/libstd/thread.rs')
-rw-r--r--src/libstd/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread.rs b/src/libstd/thread.rs
index 0ce3ca1f97a..7d0df679591 100644
--- a/src/libstd/thread.rs
+++ b/src/libstd/thread.rs
@@ -284,7 +284,7 @@ impl Builder {
                 stack::record_os_managed_stack_bounds(my_stack_bottom, my_stack_top);
             }
             match their_thread.name() {
-                Some(name) => unsafe { imp::set_name(name.as_slice()); },
+                Some(name) => unsafe { imp::set_name(name); },
                 None => {}
             }
             thread_info::set(