From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/icu_provider/src/serde/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vendor/icu_provider/src/serde/mod.rs') diff --git a/vendor/icu_provider/src/serde/mod.rs b/vendor/icu_provider/src/serde/mod.rs index 2e96b3cb3..098f1e880 100644 --- a/vendor/icu_provider/src/serde/mod.rs +++ b/vendor/icu_provider/src/serde/mod.rs @@ -23,6 +23,7 @@ use yoke::trait_hack::YokeTraitHack; use yoke::Yokeable; /// A [`BufferProvider`] that deserializes its data using Serde. +#[derive(Debug)] pub struct DeserializingBufferProvider<'a, P: ?Sized>(&'a P); /// Blanket-implemented trait adding the [`Self::as_deserializing()`] function. @@ -101,7 +102,7 @@ impl DataPayload { /// use icu_provider::hello_world::*; /// use icu_provider::prelude::*; /// - /// let buffer: &[u8] = b"{\"message\":\"Hallo Welt\"}"; + /// let buffer: &[u8] = br#"{"message":"Hallo Welt"}"#; /// /// let buffer_payload = DataPayload::from_owned(buffer); /// let payload: DataPayload = buffer_payload -- cgit v1.2.3