diff --git a/main/src/project.rs b/main/src/project.rs index 33be8ad..8b4ef5e 100644 --- a/main/src/project.rs +++ b/main/src/project.rs @@ -75,8 +75,8 @@ pub fn build_dylib(cfg: BuildConfig) -> Result { cmd.arg("--lib"); cmd.arg("--locked"); - if cfg.features.is_some() { - cmd.arg(format!("--features={}", cfg.features.clone().unwrap())); + if let Some(features) = cfg.features { + cmd.arg(format!("--features={}", features.clone())); } if !cfg.stable {