File tree 17 files changed +17
-17
lines changed
17 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl<'a> CodeWriter<'a> {
62
62
self . write_line ( "#![allow(clippy::all)]" ) ;
63
63
self . write_line ( "" ) ;
64
64
self . write_line ( "#![allow(unused_attributes)]" ) ;
65
- self . write_line ( "#![rustfmt::skip]" ) ;
65
+ self . write_line ( "#![cfg_attr( rustfmt, rustfmt ::skip) ]" ) ;
66
66
self . write_line ( "" ) ;
67
67
self . write_line ( "#![allow(box_pointers)]" ) ;
68
68
self . write_line ( "#![allow(dead_code)]" ) ;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ pub(crate) fn gen_well_known_types_mod(
119
119
120
120
w. write_line ( "" ) ;
121
121
w. write_line ( "#![allow(unused_attributes)]" ) ;
122
- w. write_line ( "#![rustfmt::skip]" ) ;
122
+ w. write_line ( "#![cfg_attr( rustfmt, rustfmt ::skip) ]" ) ;
123
123
124
124
w. write_line ( "" ) ;
125
125
for m in WELL_KNOWN_TYPES_PROTO_FILE_NAMES {
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 5
5
//! [This document](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) describes these types.
6
6
7
7
#![ allow( unused_attributes) ]
8
- #![ rustfmt:: skip]
8
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
9
9
10
10
mod any;
11
11
mod api;
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
Original file line number Diff line number Diff line change 7
7
#![ allow( clippy:: all) ]
8
8
9
9
#![ allow( unused_attributes) ]
10
- #![ rustfmt:: skip]
10
+ #![ cfg_attr ( rustfmt, rustfmt :: skip) ]
11
11
12
12
#![ allow( box_pointers) ]
13
13
#![ allow( dead_code) ]
You can’t perform that action at this time.
0 commit comments