fix build linux

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-19 12:52:41 +08:00
parent 626fdefb18
commit 8852d97efc
4 changed files with 9 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ pub fn get_license() -> String {
}
#[inline]
#[cfg(any(target_os = "linux", target_os = "windows"))]
#[cfg(target_os = "windows")]
pub fn get_option_opt(key: &str) -> Option<String> {
OPTIONS.lock().unwrap().get(key).map(|x| x.clone())
}