1
Fork 0

Address review comments + Fix rebase

This commit is contained in:
Vadim Petrochenkov 2019-07-06 01:58:52 +03:00
parent b6d522a101
commit 941653b528
5 changed files with 22 additions and 12 deletions

View file

@ -103,9 +103,8 @@
//!
//! ```rust
//! # #![feature(rustc_private)]
//! # #![allow(deprecated)]
//! extern crate serialize;
//! use serialize::json::{self, ToJson, Json};
//! extern crate serialize as rustc_serialize;
//! use rustc_serialize::json::{self, ToJson, Json};
//!
//! // A custom data structure
//! struct ComplexNum {
@ -121,7 +120,7 @@
//! }
//!
//! // Only generate `RustcEncodable` trait implementation
//! #[derive(Encodable)]
//! #[derive(RustcEncodable)]
//! pub struct ComplexNumRecord {
//! uid: u8,
//! dsc: String,
@ -144,13 +143,12 @@
//!
//! ```rust
//! # #![feature(rustc_private)]
//! # #![allow(deprecated)]
//! extern crate serialize;
//! extern crate serialize as rustc_serialize;
//! use std::collections::BTreeMap;
//! use serialize::json::{self, Json, ToJson};
//! use rustc_serialize::json::{self, Json, ToJson};
//!
//! // Only generate `Decodable` trait implementation
//! #[derive(Decodable)]
//! // Only generate `RustcDecodable` trait implementation
//! #[derive(RustcDecodable)]
//! pub struct TestStruct {
//! data_int: u8,
//! data_str: String,