diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:42 +0000 |
commit | 837b550238aa671a591ccf282dddeab29cadb206 (patch) | |
tree | 914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/icu_provider/src/request.rs | |
parent | Adding debian version 1.70.0+dfsg2-1. (diff) | |
download | rustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz rustc-837b550238aa671a591ccf282dddeab29cadb206.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/icu_provider/src/request.rs')
-rw-r--r-- | vendor/icu_provider/src/request.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vendor/icu_provider/src/request.rs b/vendor/icu_provider/src/request.rs index 5f51f3a2c..c5bdbe84b 100644 --- a/vendor/icu_provider/src/request.rs +++ b/vendor/icu_provider/src/request.rs @@ -37,7 +37,10 @@ impl fmt::Display for DataRequest<'_> { /// for tuning locale fallback, buffer layout, and so forth. #[derive(Default, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[non_exhaustive] -pub struct DataRequestMetadata; +pub struct DataRequestMetadata { + /// Silent requests do not log errors. This can be used for exploratory querying, such as fallbacks. + pub silent: bool, +} /// The main locale type used by the ICU4X data provider. /// @@ -120,7 +123,7 @@ impl<'a> Default for &'a DataLocale { impl fmt::Debug for DataLocale { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "DataLocale{{{}}}", self) + write!(f, "DataLocale{{{self}}}") } } |