fix ambiguous calls to type_id preventing compilation on nightly
This commit is contained in:
parent
3bab79f375
commit
0a11cadebf
@ -37,7 +37,7 @@ impl Any {
|
||||
#[inline]
|
||||
pub fn is<T: Any>(&self) -> bool {
|
||||
let t = TypeId::of::<T>();
|
||||
let boxed = self.type_id();
|
||||
let boxed = <Any as Any>::type_id(self);
|
||||
|
||||
t == boxed
|
||||
}
|
||||
|
@ -622,7 +622,7 @@ impl Engine {
|
||||
}
|
||||
|
||||
fn nice_type_name(&self, b: Box<Any>) -> String {
|
||||
let tid = (&*b).type_id();
|
||||
let tid = <Any as Any>::type_id(&*b);
|
||||
if let Some(name) = self.type_names.get(&tid) {
|
||||
name.to_string()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user