Skip to content

Commit bb0ec04

Browse files
committed
Numbers and links
1 parent 5980e5d commit bb0ec04

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

_posts/2017-02-02-Rust-1.15.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ struct Pet {
3636
The `Debug` trait is then implemented for `Pet`. However, this only worked for
3737
traits provided as part of the standard library; it was not customizable. With
3838
Rust 1.15, it now is. That means, if you want to turn your `Pet` into JSON, it's
39-
as easy as adding [serde] to your `Cargo.toml`:
39+
as easy as adding [Serde][serde] to your `Cargo.toml`:
4040

4141
```toml
4242
[dependencies]
43-
serde = "0.9.0"
44-
serde_derive = "0.9.0"
45-
serde_json = "0.9.0"
43+
serde = "0.9"
44+
serde_derive = "0.9"
45+
serde_json = "0.9"
4646
```
4747

4848
[serde]: https://serde.rs
@@ -78,8 +78,8 @@ serialized = {"name":"Ferris"}
7878
deserialized = Pet { name: "Ferris" }
7979
```
8080

81-
Another common use-case is [Diesel](http://diesel.rs/). Say we wanted to store
82-
our `Pet`s in a database. We could do that like this:
81+
Another common use-case is [Diesel][diesel]. Say we wanted to store our `Pet`s
82+
in a database. We could do that like this:
8383

8484
```rust
8585
// some extern crate and use lines elided here
@@ -105,7 +105,9 @@ fn main() {
105105
}
106106
```
107107

108-
For full instructions, see [the website][Diesel].
108+
For full instructions, see [the website][diesel].
109+
110+
[diesel]: http://diesel.rs
109111

110112
These kinds of libraries are extremely powerful, but rely on custom derive for
111113
ergonomics. While these libraries _worked_ on Rust stable previously, they were

0 commit comments

Comments
 (0)