mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Use correct array-init version
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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`:
|
||||
|
||||
Reference in New Issue
Block a user