style: 对跨实例同步移植代码执行 cargo fmt
Sync source to CNB / Sync Git ref (push) Has been cancelled

This commit is contained in:
AxTps committed 2026-10-04 07:42:48 +08:00
1 parent 6e9485c2f5
commit fae16a0184
21 files changed
+35 -40

No files matched your search

+1 -1
View File
@@ -65,4 +65,4 @@ pub(crate) async fn load_game_option_preferences(
pool: &SqlitePool,
) -> crate::Result<HashMap<String, StoredPreference>> {
Ok(sqlx::query("SELECT option_id, enabled, revision FROM synced_game_option_preferences").fetch_all(pool).await?.into_iter().map(|r| { let option_id: String = r.get("option_id"); let enabled: bool = r.get("enabled"); let revision: i64 = r.get("revision"); (option_id, StoredPreference { enabled, revision: revision.max(0) as u64 }) }).collect())
}
}
@@ -49,4 +49,4 @@ pub(crate) struct StoredOption {
pub(crate) struct StoredPreference {
pub(crate) enabled: bool,
pub(crate) revision: u64,
}
}
@@ -110,7 +110,6 @@ pub struct InstanceSyncedOptions {
pub data_packs: bool,
}
/// The set of per-instance synchronization features. Mirrors the Axolotl
/// `SyncedOption` enum, including its string keys used by the
/// `instance_sync_preferences` / `sync_feature_settings` tables.
@@ -66,4 +66,4 @@ fn unknown_value(kind: &str, value: &str) -> crate::Error {
crate::ErrorKind::InputError(format!("Unknown {kind} {value}")).into()
}
mod game_options;
pub use self::game_options::*;
pub use self::game_options::*;