Allow underscore for numbers #13
Annotations
11 warnings
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u512.rs#L1208
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u512.rs:1208:1
|
1208 | impl Into<u8> for U512 {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u512::U512>`
|
1208 ~ impl From<U512> for u8 {
1209 | #[inline]
1210 ~ fn from(val: U512) -> Self {
1211 ~ val.0[7] as u8
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u512.rs#L1201
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u512.rs:1201:1
|
1201 | impl Into<u16> for U512 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u512::U512>`
|
1201 ~ impl From<U512> for u16 {
1202 | #[inline]
1203 ~ fn from(val: U512) -> Self {
1204 ~ val.0[7] as u16
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u512.rs#L1194
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u512.rs:1194:1
|
1194 | impl Into<u32> for U512 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u512::U512>`
|
1194 ~ impl From<U512> for u32 {
1195 | #[inline]
1196 ~ fn from(val: U512) -> Self {
1197 ~ val.0[7] as u32
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u512.rs#L1187
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u512.rs:1187:1
|
1187 | impl Into<u64> for U512 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u512::U512>`
|
1187 ~ impl From<U512> for u64 {
1188 | #[inline]
1189 ~ fn from(val: U512) -> Self {
1190 ~ val.0[7]
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u256.rs#L813
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u256.rs:813:1
|
813 | impl Into<u8> for U256 {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u256::U256>`
|
813 ~ impl From<U256> for u8 {
814 | #[inline]
815 ~ fn from(val: U256) -> Self {
816 ~ val.0[3] as u8
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u256.rs#L806
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u256.rs:806:1
|
806 | impl Into<u16> for U256 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u256::U256>`
|
806 ~ impl From<U256> for u16 {
807 | #[inline]
808 ~ fn from(val: U256) -> Self {
809 ~ val.0[3] as u16
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u256.rs#L799
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u256.rs:799:1
|
799 | impl Into<u32> for U256 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<u256::U256>`
|
799 ~ impl From<U256> for u32 {
800 | #[inline]
801 ~ fn from(val: U256) -> Self {
802 ~ val.0[3] as u32
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
src/u256.rs#L792
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/u256.rs:792:1
|
792 | impl Into<u64> for U256 {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<u256::U256>`
|
792 ~ impl From<U256> for u64 {
793 | #[inline]
794 ~ fn from(val: U256) -> Self {
795 ~ val.0[3]
|
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|