fix ambiguous calls to type_id preventing compilation on nightly

This commit is contained in:
David Kushner
2019-04-17 13:28:14 -07:00
parent 3bab79f375
commit 0a11cadebf
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {