Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit 2ee7b01

Browse files
committed
Resolve used_underscore_items pedantic clippy lint in test
warning: used underscore-prefixed item --> tests/test_item.rs:240:21 | 240 | [<_jit_ $fn>]($arg); | ^^^^^^^^^^^^^^^^^^^ ... 246 | jit_reexport!(address, node: ()); | -------------------------------- in this macro invocation | note: item is defined here --> tests/test_item.rs:234:5 | 234 | fn _jit_address(_node: ()) {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items = note: `-W clippy::used-underscore-items` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::used_underscore_items)]` = note: this warning originates in the macro `jit_reexport` (in Nightly builds, run with -Z macro-backtrace for more info)
1 parent 6cc0d3f commit 2ee7b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ mod test_type_in_fn_arg {
231231

232232
use paste::paste;
233233

234-
fn _jit_address(_node: ()) {}
234+
fn jit_address(_node: ()) {}
235235

236236
macro_rules! jit_reexport {
237237
($fn:ident, $arg:ident : $typ:ty) => {
238238
paste! {
239239
pub fn $fn($arg: $typ) {
240-
[<_jit_ $fn>]($arg);
240+
[<jit_ $fn>]($arg);
241241
}
242242
}
243243
};

0 commit comments

Comments
 (0)