Skip to content

Commit b49edc6

Browse files
wangjiewangjie
authored andcommitted
修复 ci 问题
1 parent 81b5fe5 commit b49edc6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/i18n.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ impl LanguagePreference {
3636
}
3737
}
3838

39+
#[cfg(any(target_os = "macos", target_os = "windows"))]
3940
pub struct Texts {
4041
lang: Language,
4142
}
4243

44+
#[cfg(any(target_os = "macos", target_os = "windows"))]
4345
impl Texts {
4446
pub const fn new(lang: Language) -> Self {
4547
Self { lang }
@@ -380,6 +382,7 @@ fn detect_system_language_macos() -> Language {
380382
crate::macos::locale::detect_system_language()
381383
}
382384

385+
#[cfg(target_os = "macos")]
383386
pub fn first_quoted(s: &str) -> Option<&str> {
384387
let mut in_quote = false;
385388
let mut start = 0usize;

0 commit comments

Comments
 (0)