File tree 1 file changed +4
-15
lines changed 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -107,20 +107,15 @@ fn try_message(input: TokenStream) -> Result<TokenStream> {
107
107
quote ! ( )
108
108
} else {
109
109
quote ! {
110
+ #[ allow( dead_code) ]
110
111
impl #ident {
111
112
#( #methods) *
112
113
}
113
114
}
114
115
} ;
115
116
116
117
let expanded = quote ! {
117
- #[ allow(
118
- non_upper_case_globals,
119
- unused_attributes,
120
- unused_imports,
121
- unused_qualifications,
122
- unused_variables
123
- ) ]
118
+ #[ allow( non_upper_case_globals, unused_attributes) ]
124
119
const #dummy_const: ( ) = {
125
120
126
121
extern crate prost as _prost;
@@ -209,7 +204,7 @@ pub fn enumeration(input: TokenStream) -> TokenStream {
209
204
let from_i32_doc = format ! ( "Converts an `i32` to a `{}`, or `None` if `value` is not a valid variant." , ident) ;
210
205
211
206
let expanded = quote ! {
212
- #[ allow( non_upper_case_globals, unused_attributes, unused_qualifications ) ]
207
+ #[ allow( non_upper_case_globals, unused_attributes) ]
213
208
const #dummy_const: ( ) = {
214
209
extern crate bytes as _bytes;
215
210
extern crate prost as _prost;
@@ -325,13 +320,7 @@ fn try_oneof(input: TokenStream) -> Result<TokenStream> {
325
320
} ) ;
326
321
327
322
let expanded = quote ! {
328
- #[ allow(
329
- non_upper_case_globals,
330
- unused_attributes,
331
- unused_imports,
332
- unused_qualifications,
333
- unused_variables
334
- ) ]
323
+ #[ allow( non_upper_case_globals, unused_attributes) ]
335
324
const #dummy_const: ( ) = {
336
325
extern crate bytes as _bytes;
337
326
extern crate prost as _prost;
You can’t perform that action at this time.
0 commit comments