Clippy
This commit is contained in:
parent
fb8f72939d
commit
2e5d05deba
|
@ -23,6 +23,7 @@ steps:
|
|||
commands:
|
||||
- rustup component add clippy
|
||||
- cargo clippy -- -D warnings
|
||||
- cargo clippy -p stable-step-derive -- -D warnings
|
||||
- cargo clippy --features derive -- -D warnings
|
||||
- cargo clippy --examples --features derive -- -D warnings
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "stable-step"
|
||||
description = "An implementation of Step for stable rust"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["asonix <asonix@asonix.dog>"]
|
||||
license = "Apache-2.0/MIT"
|
||||
repository = "https://git.asonix.dog/asonix/stable-step"
|
||||
|
|
24
src/lib.rs
24
src/lib.rs
|
@ -53,21 +53,19 @@
|
|||
//! }
|
||||
//! }
|
||||
//!
|
||||
//! fn main() {
|
||||
//! println!("All");
|
||||
//! for value in MyEnum::iter() {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//! println!("All");
|
||||
//! for value in MyEnum::iter() {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//!
|
||||
//! println!("Subset");
|
||||
//! for value in MyEnum::B.iter_to(MyEnum::E) {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//! println!("Subset");
|
||||
//! for value in MyEnum::B.iter_to(MyEnum::E) {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//!
|
||||
//! println!("Reversed");
|
||||
//! for value in MyEnum::B.iter_to_inclusive(MyEnum::E).rev() {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//! println!("Reversed");
|
||||
//! for value in MyEnum::B.iter_to_inclusive(MyEnum::E).rev() {
|
||||
//! println!("{:?}", value);
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
|
|
Loading…
Reference in a new issue