diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
commit | 4f9fe856a25ab29345b90e7725509e9ee38a37be (patch) | |
tree | e4ffd8a9374cae7b21f7cbfb352927e0e074aff6 /vendor/icu_provider/src/response.rs | |
parent | Adding upstream version 1.68.2+dfsg1. (diff) | |
download | rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.tar.xz rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.zip |
Adding upstream version 1.69.0+dfsg1.upstream/1.69.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | vendor/icu_provider/src/response.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/icu_provider/src/response.rs b/vendor/icu_provider/src/response.rs index 653d20a68..1ea6c8a76 100644 --- a/vendor/icu_provider/src/response.rs +++ b/vendor/icu_provider/src/response.rs @@ -51,10 +51,10 @@ pub struct DataResponseMetadata { /// To transform a [`DataPayload`] to a different type backed by the same data store (cart), use /// [`DataPayload::map_project()`] or one of its sister methods. /// -/// # `sync` feature +/// # Cargo feature: `sync` /// /// By default, the payload uses non-concurrent reference counting internally, and hence is neither -/// [`Sync`] nor [`Send`]; if these traits are required, the `sync` feature can be enabled. +/// [`Sync`] nor [`Send`]; if these traits are required, the `sync` Cargo feature can be enabled. /// /// # Examples /// @@ -183,7 +183,7 @@ where /// use std::borrow::Cow; /// /// let local_struct = HelloWorldV1 { - /// message: Cow::Owned("example".to_string()), + /// message: Cow::Owned("example".to_owned()), /// }; /// /// let payload = @@ -236,8 +236,8 @@ where /// let mut payload = /// DataPayload::<HelloWorldV1Marker>::from_static_str("Hello"); /// - /// let suffix = " World".to_string(); - /// payload.with_mut(move |s| s.message.to_mut().push_str(&suffix)); + /// let suffix = " World"; + /// payload.with_mut(move |s| s.message.to_mut().push_str(suffix)); /// /// assert_eq!("Hello World", payload.get().message); /// ``` |