fix: reorder accounts field in Store struct for consistency

This commit is contained in:
2026-04-30 09:56:55 +08:00
parent 01449ef788
commit 87a2a85dd7
+3 -3
View File
@@ -18,13 +18,13 @@ pub struct Store {
#[serde(default)]
pub meta: Meta,
#[serde(default)]
pub accounts: Vec<Account>,
#[serde(default)]
pub homes: Vec<Home>,
#[serde(default)]
pub server: ServerConfig,
#[serde(default)]
pub sync: SyncConfig,
#[serde(default)]
pub accounts: Vec<Account>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -220,10 +220,10 @@ impl Store {
fn with_default_home(codex_home: &Path) -> Self {
let mut store = Self {
meta: Meta::default(),
accounts: Vec::new(),
homes: Vec::new(),
server: ServerConfig::default(),
sync: SyncConfig::default(),
accounts: Vec::new(),
};
store.ensure_default_home(codex_home);
store