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_locale<T>(result: &Result<T, DataError>) -> bool { |
8 | matches!( |
9 | result, |
10 | Err(DataError { |
11 | kind: DataErrorKind::MissingLocale, |
12 | .. |
13 | }) |
14 | ) |
15 | } |
16 |