mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Suppress unused vars warning generated by gpui macro
This commit is contained in:
parent
42409528af
commit
9f40a5c53f
@ -170,6 +170,8 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
#max_retries,
|
||||
#detect_nondeterminism,
|
||||
&mut |cx, foreground_platform, deterministic, seed| {
|
||||
// some of the macro contents do not use all variables, silence the warnings
|
||||
let _ = (&cx, &foreground_platform, &deterministic, &seed);
|
||||
#cx_vars
|
||||
cx.foreground().run(#inner_fn_name(#inner_fn_args));
|
||||
#cx_teardowns
|
||||
@ -247,6 +249,8 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
#max_retries,
|
||||
#detect_nondeterminism,
|
||||
&mut |cx, foreground_platform, deterministic, seed| {
|
||||
// some of the macro contents do not use all variables, silence the warnings
|
||||
let _ = (&cx, &foreground_platform, &deterministic, &seed);
|
||||
#cx_vars
|
||||
#inner_fn_name(#inner_fn_args);
|
||||
#cx_teardowns
|
||||
|
Loading…
Reference in New Issue
Block a user