Prep 0.7.2 (#141) #80
minimal-versions.yml
on: push
Minimal versions build
35s
Annotations
1000 warnings
Minimal versions build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Minimal versions build
Unexpected input(s) 'profile', valid inputs are ['toolchain', 'targets', 'target', 'components']
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/3246e79513cb89ddbfc0f21cb5a877e5b321dcc5/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/bb594538fc6e84213a6b8d5e165442570aa48923/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/3406ada96f8e16e49e947a91db3eba0db45245fa/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/397937d812852f9bbeb671005cb399dbcb357cde/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/8f359beca4e58bc3ae795a666301a8f47023044c/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/381d69953bb7c3390cec0fee200f24529cb6320f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/0ecbd0605770f45c9151715e66ba2b3cae367fcb/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/fc3800f65777a365b5125706d60f97e4d0675efe/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/ef324565d071c6d7e2477a195648549e33d6a465/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c475e2303b551d726307c646181e0677af1e0069/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/878c8a2a62d49ca5c454547ad67290a1df746cb5/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/2dceda4f32b97f60b122f2b32491e0267ef5cc0c/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/5119208fd78a77547c705d1695428c88d6791263/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/516b6162a2ea8e66678c09e8243ebd83e4b8eeea/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/d18480b84fdbf1efc34f62070951334aa833d761/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/b6d2d841bcf4b77343b159f134c7d39c2dd4ceaa/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/7d3702e472b99be0f5de6608dd87af1df8f99428/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9c3ad802d9b9633d60d3a74668eb1be819212d34/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/46b180ec2452d388c5d9c14009442e2e0beb01d7/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/2d24fe591f30386d6d5fc2bb941c78d7266bf10f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/3b1717c052de4a2dbdd3badb0e7a885f40a8ad9e/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/4a0cc881dcc4d800f10672747f61a94377ff6662/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/a165f1f65015b1bd4afd2ec50700aaacf2e0c485/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/3cbb93223f33024db464a4df27a13c7cce870173/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/f4b771bf1fb836392e1c510a625cdc81be09c952/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c67326b063bd27ed04f306ba2e372cd92e0a8751/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/766bdce744d531267d53ba2a3f9ffcda69fb9b17/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/eb45c844407968ea54df0d9870ebce9e3235b706/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/3c85e56249b0b1942339a6a989a971bf6f1c9e0f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/a7e4de13c1785819f4d61da41f6704ed69d5f203/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/1388d7a069d872bcfe5e5dd97ef61fa0a586fac0/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/0ad927c0c07b65fc0dae37105e09c877c87c296a/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/efd9d2df12b5e17fac0b4d0fb89f612ecd79f259/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/85e449a3237e82c9ade8936a82bd4fc64cfe1057/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/277d06bc95c6c38a2337ccde798b2c709384bd84/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/2f090c30ddd6b3bbe5c81c087579a5166e7c7278/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/277d06bc95c6c38a2337ccde798b2c709384bd84/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/0824b300eb0dae5d9ed59719d3f2732016683d66/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/277d06bc95c6c38a2337ccde798b2c709384bd84/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/5f2c7d2bfd46cad00352ab7cd66242077e2e518c/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/47ecded3525392b77843534bed69b4302f9af8d2/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/277d06bc95c6c38a2337ccde798b2c709384bd84/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/4147533e05ee20c4fcc432736e7feeafa46521cd/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c9f8f3438a8134a413aa5d4903e0196e44e37bbc/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/4147533e05ee20c4fcc432736e7feeafa46521cd/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c9f8f3438a8134a413aa5d4903e0196e44e37bbc/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c9f8f3438a8134a413aa5d4903e0196e44e37bbc/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/8df7e723ea729a7f917501cc2d91d640b7021373/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/805813650248c1a2f6f271460d728d1bb852d2a7/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/1684a753dbca5d23b2e03568e6fbbb48eb72d0e6/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/88c2f4f5f50ace5ddc7655ea311435104d3659bd/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/4fd4797c2654977f545c9a91e2aa4e6cdbb38919/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/c1195518c8ad7f37d15ecb82f39dec3da97f9c2f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9d79cd5f79e75bd0d2083260271307ce9acd9081/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/aa1c45908df252a5b0c14e1bcb38c6c55ae02efe/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9eff5103597e0ce73244028c96c75866dbcbad1d/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9d5cdf75aa42faaf0b58ba21a510117e8d0051a3/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9eff5103597e0ce73244028c96c75866dbcbad1d/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9eff5103597e0ce73244028c96c75866dbcbad1d/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/ab5bda1aa70f707014e2e691e43bc37a8819252a/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/8b2459c1f21187f9792d99310171a15e64feb9cf/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/9eff5103597e0ce73244028c96c75866dbcbad1d/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/aa067fb984d36462548bb785da221bfaf38253f0/library/std/src/prelude/mod.rs:148:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/27011d5dc09a8d1ac2289d024f54ecac9fc70d47/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/27011d5dc09a8d1ac2289d024f54ecac9fc70d47/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
the item `TryFrom` is imported redundantly:
renamed_num_enum/src/lib.rs#L14
warning: the item `TryFrom` is imported redundantly
--> renamed_num_enum/src/lib.rs:14:9
|
14 | use ::core::convert::TryFrom;
| ^^^^^^^^^^^^^^^^^^^^^^^^
--> /rustc/6fd1912922a7b468b1875d16571bb7a00d5df93f/library/std/src/prelude/mod.rs:129:13
|
= note: the item `TryFrom` is already defined here
|
= note: `#[warn(unused_imports)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L96
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:96:1
|
96 | / use num_enum::TryFromPrimitive;
97 | | use std::convert::TryFrom;
98 | |
99 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
117 | | assert_eq!(many, Ok(Number::Many));
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L64
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:64:1
|
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
89 | | );
90 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L33
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:33:1
|
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
... |
51 | | );
52 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L13
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:13:1
|
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
... |
24 | | assert_eq!(zero, 0u8);
25 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `#[warn(clippy::needless_doctest_main)]` on by default
|
needless `fn main` in doctest:
num_enum/src/../README.md#L222
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:222:1
|
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
241 | | assert_eq!(two, Number::NonZero(2_u8));
242 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L190
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:190:1
|
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
... |
209 | | assert_eq!(two, Number::NonZero);
210 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
num_enum/src/../README.md#L159
warning: needless `fn main` in doctest
--> num_enum/src/../README.md:159:1
|
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
... |
177 | | );
178 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|