diff options
author | toidiu <toidiu@protonmail.com> | 2017-09-03 15:45:18 -0400 |
---|---|---|
committer | toidiu <toidiu@protonmail.com> | 2017-09-03 15:45:18 -0400 |
commit | a3df0cf4debadab400cc05e77a082514a4ae6c25 (patch) | |
tree | cdd0621af35d96ed423691ec1e786bd5ca40a2b6 | |
parent | f36580cb9187b99793f89cf60e5989979f83efca (diff) | |
download | servo-a3df0cf4debadab400cc05e77a082514a4ae6c25.tar.gz servo-a3df0cf4debadab400cc05e77a082514a4ae6c25.zip |
change function signature to get type name via intrinsics
-rw-r--r-- | components/script/script_thread.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 6bba0824270..ec72c125d27 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -102,6 +102,7 @@ use servo_url::{ImmutableOrigin, MutableOrigin, ServoUrl}; use std::cell::Cell; use std::collections::{hash_map, HashMap, HashSet}; use std::default::Default; +use std::intrinsics; use std::ops::Deref; use std::option::Option; use std::ptr; @@ -221,7 +222,7 @@ pub struct CancellableRunnable<T: Runnable + Send> { } impl<T: Runnable + Send> Runnable for CancellableRunnable<T> { - fn name(&self) -> &'static str { self.inner.name() } + fn name(&self) -> &'static str { unsafe { intrinsics::type_name::<Self>() } } fn is_cancelled(&self) -> bool { self.cancelled.as_ref() |