From 77e56613a5473cbf336c53fc7351fa912baa49cd Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 22 Jul 2016 09:09:23 -0700 Subject: [PATCH] Revert "Mention Empty Bounds for Recursion in Readme" This reverts commit 93968455f3f4158e4c455b1b6743fe3571c74e8a. --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d0892761..6fe8a52c 100644 --- a/README.md +++ b/README.md @@ -762,15 +762,15 @@ how types are serialized. Here are the supported annotations: Container Annotations: -| Annotation | Function | -| ---------- | -------- | -| `#[serde(rename="name")]` | Serialize and deserialize this container with the given name | -| `#[serde(rename(serialize="name1"))]` | Serialize this container with the given name | -| `#[serde(rename(deserialize="name1"))]` | Deserialize this container with the given name | -| `#[serde(deny_unknown_fields)]` | Always error during serialization when encountering unknown fields. When absent, unknown fields are ignored for self-describing formats like JSON. | -| `#[serde(bound="T: MyTrait")]` | Where-clause for the Serialize and Deserialize impls. This replaces any bounds inferred by Serde. Setting this to `""` overwrites the generic type bounds and can be used to allow recursion. | -| `#[serde(bound(serialize="T: MyTrait"))]` | Where-clause for the Serialize impl. | -| `#[serde(bound(deserialize="T: MyTrait"))]` | Where-clause for the Deserialize impl. | +| Annotation | Function | +| ---------- | -------- | +| `#[serde(rename="name")]` | Serialize and deserialize this container with the given name | +| `#[serde(rename(serialize="name1"))]` | Serialize this container with the given name | +| `#[serde(rename(deserialize="name1"))]` | Deserialize this container with the given name | +| `#[serde(deny_unknown_fields)]` | Always error during serialization when encountering unknown fields. When absent, unknown fields are ignored for self-describing formats like JSON. | +| `#[serde(bound="T: MyTrait")]` | Where-clause for the Serialize and Deserialize impls. This replaces any bounds inferred by Serde. | +| `#[serde(bound(serialize="T: MyTrait"))]` | Where-clause for the Serialize impl. | +| `#[serde(bound(deserialize="T: MyTrait"))]` | Where-clause for the Deserialize impl. | Variant Annotations: