diff --git a/Cargo.toml b/Cargo.toml index f3ab309d..b3e72f12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/blog/content/second-edition/posts/04-unit-testing/index.md b/blog/content/second-edition/posts/04-unit-testing/index.md index ccd36928..35417384 100644 --- a/blog/content/second-edition/posts/04-unit-testing/index.md +++ b/blog/content/second-edition/posts/04-unit-testing/index.md @@ -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`: