fix(ci): derive default for Windows close behavior

This commit is contained in:
lzt404 committed 2026-08-03 17:23:37 +08:00
1 parent 93609810de
commit 6000b3159b
1 file changed
+2 -7
+2 -7
View File
@@ -505,20 +505,15 @@ enum WindowsCloseAction {
MinimizeToTray,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
enum WindowsCloseBehavior {
#[default]
Ask,
Exit,
MinimizeToTray,
}
impl Default for WindowsCloseBehavior {
fn default() -> Self {
Self::Ask
}
}
impl WindowsCloseBehavior {
fn as_str(self) -> &'static str {
match self {