]> git.proxmox.com Git - rustc.git/blob - vendor/icu_provider_adapters/src/helpers.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / vendor / icu_provider_adapters / src / helpers.rs
1 // This file is part of ICU4X. For terms of use, please see the file
2 // called LICENSE at the top level of the ICU4X source tree
3 // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5 use icu_provider::prelude::*;
6
7 pub(crate) fn result_is_err_missing_data_options<T>(result: &Result<T, DataError>) -> bool {
8 matches!(
9 result,
10 Err(DataError {
11 kind: DataErrorKind::MissingLocale,
12 ..
13 })
14 )
15 }