mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-24 08:11:04 +00:00
9 lines
238 B
Rust
9 lines
238 B
Rust
#[inline]
|
|
pub(crate) fn check_for(r#for: Option<&str>) -> bool {
|
|
match r#for.as_ref().map(|s| s.as_ref()) {
|
|
Some("unix") if cfg!(unix) => true,
|
|
Some(os) if os == std::env::consts::OS => true,
|
|
Some(_) => false,
|
|
None => true,
|
|
}
|
|
}
|