Skip to content

fix: tests

fix: tests #25

Triggered via pull request November 12, 2024 07:20
@joshkajoshka
opened #13
jm/dev
Status Success
Total duration 1m 55s
Artifacts

check.yml

on: pull_request
Matrix: clippy
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
unneeded `return` statement: src/unstable.rs#L31
warning: unneeded `return` statement --> src/unstable.rs:31:21 | 31 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 31 | Err(err) => TokenStream::from(Error::from(err).write_errors()), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L12
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:12:28 | 12 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `Error::from(err).write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L16
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:16:28 | 16 | Err(err) => return TokenStream::from(err.write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `err.write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L31
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:31:28 | 31 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `Error::from(err).write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L58
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:58:20 | 58 | return item.into_token_stream().into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `item.into_token_stream()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L77
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:77:9 | 77 | / TokenStream::from(quote! { 78 | | #[cfg(any(doc, feature = #feature_flag))] 79 | | #[cfg_attr(docsrs, doc(cfg(feature = #feature_flag)))] 80 | | #item ... | 84 | | #hidden_item 85 | | }) | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `TokenStream::from()` | 77 ~ quote! { 78 + #[cfg(any(doc, feature = #feature_flag))] 79 + #[cfg_attr(docsrs, doc(cfg(feature = #feature_flag)))] 80 + #item 81 + 82 + #[cfg(not(any(doc, feature = #feature_flag)))] 83 + #[allow(dead_code)] 84 + #hidden_item 85 + } |
unneeded `return` statement: src/unstable.rs#L31
warning: unneeded `return` statement --> src/unstable.rs:31:21 | 31 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default help: remove `return` | 31 | Err(err) => TokenStream::from(Error::from(err).write_errors()), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L12
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:12:28 | 12 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `Error::from(err).write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L16
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:16:28 | 16 | Err(err) => return TokenStream::from(err.write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `err.write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L31
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:31:28 | 31 | Err(err) => return TokenStream::from(Error::from(err).write_errors()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `TokenStream::from()`: `Error::from(err).write_errors()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L58
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:58:20 | 58 | return item.into_token_stream().into(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `item.into_token_stream()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `proc_macro2::TokenStream`: src/unstable.rs#L77
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/unstable.rs:77:9 | 77 | / TokenStream::from(quote! { 78 | | #[cfg(any(doc, feature = #feature_flag))] 79 | | #[cfg_attr(docsrs, doc(cfg(feature = #feature_flag)))] 80 | | #item ... | 84 | | #hidden_item 85 | | }) | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `TokenStream::from()` | 77 ~ quote! { 78 + #[cfg(any(doc, feature = #feature_flag))] 79 + #[cfg_attr(docsrs, doc(cfg(feature = #feature_flag)))] 80 + #item 81 + 82 + #[cfg(not(any(doc, feature = #feature_flag)))] 83 + #[allow(dead_code)] 84 + #hidden_item 85 + } |