Format with rustfmt 0.7.0

This commit is contained in:
David Tolnay
2018-05-19 17:33:30 -07:00
parent 0c5f20c148
commit 4fa2a50f62
10 changed files with 41 additions and 43 deletions
+3 -1
View File
@@ -1426,7 +1426,9 @@ fn is_primitive_type(ty: &syn::Type, primitive: &str) -> bool {
}
fn is_primitive_path(path: &syn::Path, primitive: &str) -> bool {
path.leading_colon.is_none() && path.segments.len() == 1 && path.segments[0].ident == primitive
path.leading_colon.is_none()
&& path.segments.len() == 1
&& path.segments[0].ident == primitive
&& path.segments[0].arguments.is_empty()
}