File tree Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 6
6
use abscissa_core:: testing:: CmdRunner ;
7
7
use once_cell:: sync:: Lazy ;
8
8
9
- pub static RUNNER : Lazy < CmdRunner > = Lazy :: new ( || CmdRunner :: default ( ) ) ;
9
+ static RUNNER : Lazy < CmdRunner > = Lazy :: new ( || CmdRunner :: default ( ) ) ;
10
10
11
11
#[ test]
12
12
fn no_args ( ) {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const TEST_COMMANDS: &[&str] = &[
19
19
"clippy" ,
20
20
] ;
21
21
22
- pub static RUNNER : Lazy < CmdRunner > = Lazy :: new ( || {
22
+ static RUNNER : Lazy < CmdRunner > = Lazy :: new ( || {
23
23
let mut runner = CmdRunner :: new ( "cargo" ) ;
24
24
runner. exclusive ( ) ;
25
25
runner
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ pub fn derive_command(s: Structure<'_>) -> TokenStream {
9
9
let subcommand_usage = quote ! ( ) ;
10
10
11
11
s. gen_impl ( quote ! {
12
+ #[ allow( unknown_lints) ]
13
+ #[ allow( non_local_definitions) ]
12
14
gen impl Command for @Self {
13
15
#[ doc = "Name of this program as a string" ]
14
16
fn name( ) -> & ' static str {
@@ -44,6 +46,8 @@ mod tests {
44
46
expands to {
45
47
#[ allow( non_upper_case_globals) ]
46
48
const _DERIVE_Command_FOR_MyCommand: ( ) = {
49
+ #[ allow( unknown_lints) ]
50
+ #[ allow( non_local_definitions) ]
47
51
impl Command for MyCommand {
48
52
#[ doc = "Name of this program as a string" ]
49
53
fn name( ) -> & ' static str {
@@ -79,6 +83,8 @@ mod tests {
79
83
expands to {
80
84
#[ allow( non_upper_case_globals) ]
81
85
const _DERIVE_Command_FOR_MyCommand: ( ) = {
86
+ #[ allow( unknown_lints) ]
87
+ #[ allow( non_local_definitions) ]
82
88
impl Command for MyCommand {
83
89
#[ doc = "Name of this program as a string" ]
84
90
fn name( ) -> & ' static str {
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ pub fn derive_component(s: Structure<'_>) -> TokenStream {
13
13
let dependency_methods = attrs. dependency_methods ( ) ;
14
14
15
15
s. gen_impl ( quote ! {
16
+ #[ allow( unknown_lints) ]
17
+ #[ allow( non_local_definitions) ]
16
18
gen impl <A > Component <A > for @Self
17
19
where
18
20
A : #abscissa_core:: Application
@@ -199,6 +201,8 @@ mod tests {
199
201
expands to {
200
202
#[ allow( non_upper_case_globals) ]
201
203
const _DERIVE_Component_A_FOR_MyComponent: ( ) = {
204
+ #[ allow( unknown_lints) ]
205
+ #[ allow( non_local_definitions) ]
202
206
impl <A > Component <A > for MyComponent
203
207
where
204
208
A : abscissa_core:: Application
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ pub fn derive_runnable(s: synstructure::Structure<'_>) -> proc_macro2::TokenStre
7
7
} ) ;
8
8
9
9
s. gen_impl ( quote ! {
10
+ #[ allow( unknown_lints) ]
11
+ #[ allow( non_local_definitions) ]
10
12
gen impl Runnable for @Self {
11
13
fn run( & self ) {
12
14
match * self { #body }
@@ -33,6 +35,8 @@ mod tests {
33
35
expands to {
34
36
#[ allow( non_upper_case_globals) ]
35
37
const _DERIVE_Runnable_FOR_MyRunnable: ( ) = {
38
+ #[ allow( unknown_lints) ]
39
+ #[ allow( non_local_definitions) ]
36
40
impl Runnable for MyRunnable {
37
41
fn run( & self ) {
38
42
match * self {
You can’t perform that action at this time.
0 commit comments