Skip to content

feat: add stable macro #27

feat: add stable macro

feat: add stable macro #27

Triggered via pull request November 12, 2024 11:01
@joshkajoshka
opened #14
jm/dev
Status Success
Total duration 1m 56s
Artifacts

check.yml

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

Annotations

20 warnings
unneeded `return` statement: src/stable.rs#L31
warning: unneeded `return` statement --> src/stable.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/stable.rs#L12
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L16
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L31
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L48
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.rs:48:20 | 48 | 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
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 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
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
unneeded `return` statement: src/stable.rs#L31
warning: unneeded `return` statement --> src/stable.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/stable.rs#L12
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L16
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L31
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.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/stable.rs#L48
warning: useless conversion to the same type: `proc_macro2::TokenStream` --> src/stable.rs:48:20 | 48 | 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
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 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
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