mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 19:44:50 +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.prefix.is_empty()
|
||||
&& (!self.libsurvive_enabled
|
||||
|| self.libsurvive_path.as_ref().is_some_and(|p| !p.is_empty()))
|
||||
&& (!self.basalt_enabled || self.basalt_path.as_ref().is_some_and(|p| !p.is_empty()))
|
||||
&& (!self.mercury_enabled || self.mercury_path.as_ref().is_some_and(|p| !p.is_empty()))
|
||||
|| !self
|
||||
.libsurvive_path
|
||||
.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
Reference in a new issue