Skip to content

Commit

Permalink
Use correct array-init version
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed May 1, 2018
1 parent 1242eab commit 0aaeb52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version = "1.0"
features = ["spin_no_std"]

[dev-dependencies]
array-init = { git = "https://github.com/Manishearth/array-init.git" } # "0.0.2"
array-init = "0.0.3"

# the profile used for `cargo build`
[profile.dev]
Expand Down
2 changes: 1 addition & 1 deletion blog/content/second-edition/posts/04-unit-testing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ To use that crate, we add the following to our `Cargo.toml`:

```toml
[dev-dependencies]
array-init = "0.0.2"
array-init = "0.0.3"
```

Note that we're using the [`dev-dependencies`] table instead of the `dependencies` table, because we only need the crate for `cargo test` and not for a normal build. Consequently, we also add a `#[cfg(test)]` attribute to the `extern crate` declaration in `main.rs`:
Expand Down

0 comments on commit 0aaeb52

Please sign in to comment.