Skip to content

Commit 741f6dd

Browse files
committed
Remove references to macro_use
1 parent 72e22e5 commit 741f6dd

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ when we write `p.phones[0]`, then `p.phones` is guaranteed to be a
199199
## Constructing JSON values
200200

201201
Serde JSON provides a [`json!` macro][macro] to build `serde_json::Value`
202-
objects with very natural JSON syntax. In order to use this macro,
203-
`serde_json` needs to be imported with the `#[macro_use]` attribute.
202+
objects with very natural JSON syntax.
204203

205204
<a href="https://play.rust-lang.org/?edition=2018&gist=6ccafad431d72b62e77cc34c8e879b24" target="_blank">
206205
<img align="right" width="50" src="https://raw.githubusercontent.com/serde-rs/serde-rs.github.io/master/img/run.png">

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@
179179
//! # Constructing JSON values
180180
//!
181181
//! Serde JSON provides a [`json!` macro][macro] to build `serde_json::Value`
182-
//! objects with very natural JSON syntax. In order to use this macro,
183-
//! `serde_json` needs to be imported with the `#[macro_use]` attribute.
182+
//! objects with very natural JSON syntax.
184183
//!
185184
//! ```edition2018
186185
//! use serde_json::json;

src/value/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
//! # Constructing JSON
44
//!
55
//! Serde JSON provides a [`json!` macro][macro] to build `serde_json::Value`
6-
//! objects with very natural JSON syntax. In order to use this macro,
7-
//! `serde_json` needs to be imported with the `#[macro_use]` attribute.
6+
//! objects with very natural JSON syntax.
87
//!
98
//! ```edition2018
109
//! use serde_json::json;

0 commit comments

Comments
 (0)