mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
fix: replace logic based on unstable Option::is_some_and
This commit is contained in:
parent
18febae805
commit
69f11ab211
1 changed files with 17 additions and 3 deletions
|
@ -157,9 +157,23 @@ impl Profile {
|
||||||
&& !self.xrservice_path.is_empty()
|
&& !self.xrservice_path.is_empty()
|
||||||
&& !self.prefix.is_empty()
|
&& !self.prefix.is_empty()
|
||||||
&& (!self.libsurvive_enabled
|
&& (!self.libsurvive_enabled
|
||||||
|| self.libsurvive_path.as_ref().is_some_and(|p| !p.is_empty()))
|
|| !self
|
||||||
&& (!self.basalt_enabled || self.basalt_path.as_ref().is_some_and(|p| !p.is_empty()))
|
.libsurvive_path
|
||||||
&& (!self.mercury_enabled || self.mercury_path.as_ref().is_some_and(|p| !p.is_empty()))
|
.as_ref()
|
||||||
|
.unwrap_or(&"".to_string())
|
||||||
|
.is_empty())
|
||||||
|
&& (!self.basalt_enabled
|
||||||
|
|| !self
|
||||||
|
.basalt_path
|
||||||
|
.as_ref()
|
||||||
|
.unwrap_or(&"".to_string())
|
||||||
|
.is_empty())
|
||||||
|
&& (!self.mercury_enabled
|
||||||
|
|| !self
|
||||||
|
.mercury_path
|
||||||
|
.as_ref()
|
||||||
|
.unwrap_or(&"".to_string())
|
||||||
|
.is_empty())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue