mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 15:51:03 +00:00
9 lines
236 B
Rust
9 lines
236 B
Rust
#[inline]
|
|
pub(crate) fn check_for(for_: Option<&str>) -> bool {
|
|
match 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,
|
|
}
|
|
}
|