fix: result

This commit is contained in:
GyDi
2022-03-03 01:56:47 +08:00
parent 1d65287fbb
commit 8ff22bc737
2 changed files with 6 additions and 6 deletions

View File

@@ -438,8 +438,8 @@ impl Profiles {
}
/// gen the enhanced profiles
pub fn gen_enhanced(&self) -> PrfEnhanced {
let current = self.gen_activate().unwrap();
pub fn gen_enhanced(&self) -> Result<PrfEnhanced> {
let current = self.gen_activate()?;
let chain = match self.chain.as_ref() {
Some(chain) => chain
@@ -454,7 +454,7 @@ impl Profiles {
None => vec![],
};
PrfEnhanced { current, chain }
Ok(PrfEnhanced { current, chain })
}
}