Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Update README.md

Update README.md #108

Triggered via push January 16, 2024 21:30
Status Success
Total duration 1m 35s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

23 warnings
variables can be used directly in the `format!` string: src/types.rs#L123
warning: variables can be used directly in the `format!` string --> src/types.rs:123:13 | 123 | write!(f, "={}", max)?; | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 123 - write!(f, "={}", max)?; 123 + write!(f, "={max}")?; |
`as` casting between raw pointers without changing its mutability: src/instructions/simd.rs#L64
warning: `as` casting between raw pointers without changing its mutability --> src/instructions/simd.rs:64:20 | 64 | unsafe { &*(self as *const [LaneIdx32; 16] as *const [u8; 16]) }.encode(w) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try `pointer::cast`, a safer alternative: `(self as *const [LaneIdx32; 16]).cast::<[u8; 16]>()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr = note: `#[warn(clippy::ptr_as_ptr)]` implied by `#[warn(clippy::pedantic)]`
using `SeekFrom::Current` to start from current position: examples/dump.rs#L72
warning: using `SeekFrom::Current` to start from current position --> examples/dump.rs:72:13 | 72 | f.seek(SeekFrom::Current(0)).unwrap(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `f.stream_position()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#seek_from_current = note: `#[warn(clippy::seek_from_current)]` on by default
variables can be used directly in the `format!` string: src/types.rs#L123
warning: variables can be used directly in the `format!` string --> src/types.rs:123:13 | 123 | write!(f, "={}", max)?; | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 123 - write!(f, "={}", max)?; 123 + write!(f, "={max}")?; |
methods called `as_*` usually take `self` by reference or `self` by mutable reference: src/visit.rs#L72
warning: methods called `as_*` usually take `self` by reference or `self` by mutable reference --> src/visit.rs:72:18 | 72 | fn as_result(self) -> Result<(), Self::Error>; | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention note: the lint level is defined here --> src/lib.rs:16:9 | 16 | #![warn(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[warn(clippy::wrong_self_convention)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/io.rs#L83
warning: variables can be used directly in the `format!` string --> src/io.rs:83:47 | 83 | PathItem::Variant(variant) => write!(f, ":<{}>", variant), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 83 - PathItem::Variant(variant) => write!(f, ":<{}>", variant), 83 + PathItem::Variant(variant) => write!(f, ":<{variant}>"), |
variables can be used directly in the `format!` string: src/io.rs#L82
warning: variables can be used directly in the `format!` string --> src/io.rs:82:43 | 82 | PathItem::Index(index) => write!(f, "[{}]", index), | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 82 - PathItem::Index(index) => write!(f, "[{}]", index), 82 + PathItem::Index(index) => write!(f, "[{index}]"), |
variables can be used directly in the `format!` string: src/io.rs#L81
warning: variables can be used directly in the `format!` string --> src/io.rs:81:41 | 81 | PathItem::Name(name) => write!(f, ".{}", name), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/lib.rs:16:22 | 16 | #![warn(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 81 - PathItem::Name(name) => write!(f, ".{}", name), 81 + PathItem::Name(name) => write!(f, ".{name}"), |
`as` casting between raw pointers without changing its mutability: src/instructions/simd.rs#L64
warning: `as` casting between raw pointers without changing its mutability --> src/instructions/simd.rs:64:20 | 64 | unsafe { &*(self as *const [LaneIdx32; 16] as *const [u8; 16]) }.encode(w) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try `pointer::cast`, a safer alternative: `(self as *const [LaneIdx32; 16]).cast::<[u8; 16]>()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr = note: `#[warn(clippy::ptr_as_ptr)]` implied by `#[warn(clippy::pedantic)]`
methods called `as_*` usually take `self` by reference or `self` by mutable reference: src/visit.rs#L72
warning: methods called `as_*` usually take `self` by reference or `self` by mutable reference --> src/visit.rs:72:18 | 72 | fn as_result(self) -> Result<(), Self::Error>; | ^^^^ | = help: consider choosing a less ambiguous name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention note: the lint level is defined here --> src/lib.rs:16:9 | 16 | #![warn(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[warn(clippy::wrong_self_convention)]` implied by `#[warn(clippy::all)]`
variables can be used directly in the `format!` string: src/io.rs#L83
warning: variables can be used directly in the `format!` string --> src/io.rs:83:47 | 83 | PathItem::Variant(variant) => write!(f, ":<{}>", variant), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 83 - PathItem::Variant(variant) => write!(f, ":<{}>", variant), 83 + PathItem::Variant(variant) => write!(f, ":<{variant}>"), |
variables can be used directly in the `format!` string: src/io.rs#L82
warning: variables can be used directly in the `format!` string --> src/io.rs:82:43 | 82 | PathItem::Index(index) => write!(f, "[{}]", index), | ^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 82 - PathItem::Index(index) => write!(f, "[{}]", index), 82 + PathItem::Index(index) => write!(f, "[{index}]"), |
variables can be used directly in the `format!` string: src/io.rs#L81
warning: variables can be used directly in the `format!` string --> src/io.rs:81:41 | 81 | PathItem::Name(name) => write!(f, ".{}", name), | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/lib.rs:16:22 | 16 | #![warn(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 81 - PathItem::Name(name) => write!(f, ".{}", name), 81 + PathItem::Name(name) => write!(f, ".{name}"), |
the feature `arbitrary_enum_discriminant` has been stable since 1.66.0 and no longer requires an attribute to enable: src/lib.rs#L15
warning: the feature `arbitrary_enum_discriminant` has been stable since 1.66.0 and no longer requires an attribute to enable --> src/lib.rs:15:42 | 15 | #![cfg_attr(feature = "nightly", feature(arbitrary_enum_discriminant, never_type))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(stable_features)]` on by default
the feature `arbitrary_enum_discriminant` has been stable since 1.66.0 and no longer requires an attribute to enable: src/lib.rs#L15
warning: the feature `arbitrary_enum_discriminant` has been stable since 1.66.0 and no longer requires an attribute to enable --> src/lib.rs:15:42 | 15 | #![cfg_attr(feature = "nightly", feature(arbitrary_enum_discriminant, never_type))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(stable_features)]` on by default
trailing semicolon in macro used in expression position: derive/src/lib.rs#L23
warning: trailing semicolon in macro used in expression position --> derive/src/lib.rs:23:51 | 23 | return syn::Error::to_compile_error(&$err); | ^ ... 235 | match syn_try!(discriminant(v)) { | ------------------------- in this macro invocation | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> = note: this warning originates in the macro `syn_throw` which comes from the expansion of the macro `syn_try` (in Nightly builds, run with -Z macro-backtrace for more info)
trailing semicolon in macro used in expression position: derive/src/lib.rs#L23
warning: trailing semicolon in macro used in expression position --> derive/src/lib.rs:23:51 | 23 | return syn::Error::to_compile_error(&$err); | ^ ... 162 | let discriminant = syn_try!(discriminant(v)); | ------------------------- in this macro invocation | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> = note: this warning originates in the macro `syn_throw` which comes from the expansion of the macro `syn_try` (in Nightly builds, run with -Z macro-backtrace for more info)
trailing semicolon in macro used in expression position: derive/src/lib.rs#L23
warning: trailing semicolon in macro used in expression position --> derive/src/lib.rs:23:51 | 23 | return syn::Error::to_compile_error(&$err); | ^ ... 154 | let repr = syn_try!(parse_repr(&s)); | ------------------------ in this macro invocation | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default = note: this warning originates in the macro `syn_throw` which comes from the expansion of the macro `syn_try` (in Nightly builds, run with -Z macro-backtrace for more info)
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/