Skip to content

Commit 054dc97

Browse files
committed
use snake_case for AspectRatio
1 parent 8ebf912 commit 054dc97

File tree

1 file changed

+2
-1
lines changed
  • phichain-editor/src/settings

1 file changed

+2
-1
lines changed

phichain-editor/src/settings/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl Plugin for EditorSettingsPlugin {
2121
.path(config_dir.join("settings.yml"))
2222
.default(EditorSettings::default())
2323
.build()
24-
.expect("Failed to initialize editor settings"),
24+
.expect("Failed to initialize editor settings"), // TODO: handle this
2525
);
2626
}
2727
}
@@ -78,6 +78,7 @@ impl Default for AudioSettings {
7878
}
7979

8080
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
81+
#[serde(rename_all = "snake_case")]
8182
pub enum AspectRatio {
8283
#[default]
8384
Free,

0 commit comments

Comments
 (0)