]> git.lizzy.rs Git - rust.git/blobdiff - src/items.rs
Merge pull request #2173 from topecongiro/assignment-with-100-chars
[rust.git] / src / items.rs
index 90bea58ea1baf3e9ccad4c0990a5adf046339d43..bff5c00d2f477c88a2063869ddd5ecc78a567967 100644 (file)
@@ -945,7 +945,9 @@ pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent)
 
         // FIXME(#2055): rustfmt fails to format when there are comments between trait bounds.
         if !type_param_bounds.is_empty() {
-            let ident_hi = context.codemap.span_after(item.span, &format!("{}", item.ident));
+            let ident_hi = context
+                .codemap
+                .span_after(item.span, &format!("{}", item.ident));
             let bound_hi = type_param_bounds.last().unwrap().span().hi();
             let snippet = context.snippet(mk_sp(ident_hi, bound_hi));
             if contains_comment(&snippet) {