diff --git a/contrib/src/json/mod.rs b/contrib/src/json/mod.rs index 52744ba9..f8842219 100644 --- a/contrib/src/json/mod.rs +++ b/contrib/src/json/mod.rs @@ -89,9 +89,9 @@ impl FromData for JSON { } } -// Serializes the wrapped value into JSON. Returns a response with Content-Type -// JSON and a fixed-size body with the serialization. If serialization fails, an -// `Err` of `Status::InternalServerError` is returned. +/// Serializes the wrapped value into JSON. Returns a response with Content-Type +/// JSON and a fixed-size body with the serialized value. If serialization +/// fails, an `Err` of `Status::InternalServerError` is returned. impl Responder<'static> for JSON { fn respond(self) -> response::Result<'static> { serde_json::to_string(&self.0).map(|string| {