From 9203934fd7d0c120b1a365fc8fd039bc73906d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sat, 7 Sep 2024 16:43:26 +0200 Subject: [PATCH] serde: Improve docs for Raw --- crates/ruma-common/src/serde/raw.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ruma-common/src/serde/raw.rs b/crates/ruma-common/src/serde/raw.rs index 065c9049..7be90ffb 100644 --- a/crates/ruma-common/src/serde/raw.rs +++ b/crates/ruma-common/src/serde/raw.rs @@ -11,10 +11,7 @@ use serde::{ }; use serde_json::value::{to_raw_value as to_raw_json_value, RawValue as RawJsonValue}; -/// A wrapper around `Box`. -/// -/// To be used in place of any type in the Matrix endpoint definition to allow request and response -/// types to contain that said type represented by the generic argument `Ev`. +/// A wrapper around `Box` with a generic parameter for the expected Rust type. /// /// Ruma offers the `Raw` wrapper to enable passing around JSON text that is only partially /// validated. This is useful when a client receives events that do not follow the spec perfectly