We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5120da0 commit 6995eb7Copy full SHA for 6995eb7
1 file changed
src/uucore/src/lib/mods/locale.rs
@@ -230,10 +230,9 @@ fn parse_fluent_resource(
230
cache: &'static OnceLock<FluentResource>,
231
) -> Result<&'static FluentResource, LocalizationError> {
232
// global cache breaks unit tests
233
- if cfg!(not(test)) {
234
- if let Some(res) = cache.get() {
235
- return Ok(res);
236
- }
+ #[cfg(not(test))]
+ if let Some(res) = cache.get() {
+ return Ok(res);
237
}
238
239
let resource = FluentResource::try_new(content.to_string()).map_err(
0 commit comments