diff --git a/src/core/version_manager.rs b/src/core/version_manager.rs index 8d4ab2d..57d3b4d 100644 --- a/src/core/version_manager.rs +++ b/src/core/version_manager.rs @@ -127,7 +127,8 @@ impl VersionManager { let active = entry.map(|e| e.active_version.as_str()); let stable = entry.and_then(|e| e.last_stable_version.as_deref()); - let protected_count = IntoIterator::into_iter([active, stable]) + let protected_count = [active, stable] + .into_iter() .flatten() .collect::>() .len(); diff --git a/src/plugins/device/linux_arm64.rs b/src/plugins/device/linux_arm64.rs index 7e66b12..afcd108 100644 --- a/src/plugins/device/linux_arm64.rs +++ b/src/plugins/device/linux_arm64.rs @@ -24,6 +24,12 @@ pub struct LinuxArm64Backend { backlight_enabled: bool, } +impl Default for LinuxArm64Backend { + fn default() -> Self { + Self::new() + } +} + impl LinuxArm64Backend { /// 创建新的 Linux ARM64 后端实例 pub fn new() -> Self {