File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3325,11 +3325,11 @@ impl Rewrite for ast::ForeignItem {
33253325 . map ( |( s, _, _) | format ! ( "{};" , s) )
33263326 }
33273327 }
3328- ast:: ForeignItemKind :: Static ( ref ty , mutability , _ ) => {
3328+ ast:: ForeignItemKind :: Static ( ref static_foreign_item ) => {
33293329 // FIXME(#21): we're dropping potential comments in between the
33303330 // function kw here.
33313331 let vis = format_visibility ( context, & self . vis ) ;
3332- let mut_str = format_mutability ( mutability) ;
3332+ let mut_str = format_mutability ( static_foreign_item . mutability ) ;
33333333 let prefix = format ! (
33343334 "{}static {}{}:" ,
33353335 vis,
@@ -3340,7 +3340,7 @@ impl Rewrite for ast::ForeignItem {
33403340 rewrite_assign_rhs (
33413341 context,
33423342 prefix,
3343- & * * ty,
3343+ & static_foreign_item . ty ,
33443344 & RhsAssignKind :: Ty ,
33453345 shape. sub_width ( 1 ) ?,
33463346 )
You can’t perform that action at this time.
0 commit comments