Skip to content

Commit

Permalink
resistor-color: Use int-enum 0.5.0, up from 0.4.0
Browse files Browse the repository at this point in the history
Fixes compatibility with rust-analyzer
rust-lang/rust-analyzer#13347
Juici/int-enum-rs#4
  • Loading branch information
sergey-tihon authored and petertseng committed Oct 11, 2022
1 parent 0974e72 commit d248051
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exercises/concept/resistor-color/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The goal of this exercise is to create a way:
- to convert the numerical value into a string representing color
- to list the different band colors

For task number one, you will need the external crate [`int-enum`](https://docs.rs/int-enum/0.4.0/int_enum/) and for task number three, you'll need [`enum-iterator`](https://docs.rs/enum-iterator/1.1.1/enum_iterator/).
For task number one, you will need the external crate [`int-enum`](https://docs.rs/int-enum/0.5.0/int_enum/) and for task number three, you'll need [`enum-iterator`](https://docs.rs/enum-iterator/1.1.1/enum_iterator/).
They're both already included in this exercise's `Cargo.toml`.
Be sure to check the crates' documentation to learn how to use them.
You can look into the default implementation of the Debug trait for Enums to complete task number two.
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/resistor-color/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ You will often see external packages being referred to as "crates" in Rust. A cr

Most of the time, adding an external dependency is as simple as adding a line to your `Cargo.toml` file.

In this exercise, [`enum-iterator`](https://docs.rs/enum-iterator/1.1.1/enum_iterator/) and [`int-enum`](https://docs.rs/int-enum/0.4.0/int_enum/) dependencies were added for you.
In this exercise, [`enum-iterator`](https://docs.rs/enum-iterator/1.1.1/enum_iterator/) and [`int-enum`](https://docs.rs/int-enum/0.5.0/int_enum/) dependencies were added for you.
2 changes: 1 addition & 1 deletion exercises/concept/resistor-color/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name = "resistor-color"
version = "1.0.0"

[dependencies]
int-enum = "0.4.0"
int-enum = "0.5.0"
enum-iterator = "1.1.1"

0 comments on commit d248051

Please sign in to comment.