diff options
Diffstat (limited to 'components/script_plugins/utils.rs')
-rw-r--r-- | components/script_plugins/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script_plugins/utils.rs b/components/script_plugins/utils.rs index 0999467545b..45a348ea14f 100644 --- a/components/script_plugins/utils.rs +++ b/components/script_plugins/utils.rs @@ -25,7 +25,7 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool { other.into_iter() .map(|e| e.data) .zip(path) - .all(|(nm, p)| nm.as_interned_str().with(|nm| nm == *p)) + .all(|(nm, p)| &*nm.as_interned_str() == *p) } pub fn in_derive_expn(span: Span) -> bool { |