Format components/script_plugins

This commit is contained in:
chansuke 2018-09-13 01:01:35 +09:00
parent 29ba51016b
commit 3324b5b82f
3 changed files with 80 additions and 49 deletions

View file

@ -22,10 +22,11 @@ pub fn match_def_path(cx: &LateContext, def_id: DefId, path: &[&str]) -> bool {
return false;
}
other.into_iter()
.map(|e| e.data)
.zip(path)
.all(|(nm, p)| &*nm.as_interned_str().as_str() == *p)
other
.into_iter()
.map(|e| e.data)
.zip(path)
.all(|(nm, p)| &*nm.as_interned_str().as_str() == *p)
}
pub fn in_derive_expn(span: Span) -> bool {