mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 20:09:59 +03:00
Fix parsing TOML key 'position' and values (#281)
* fix parsing toml key position and values * Using rename_all instead rename over each enum * rename struct field directly --------- Co-authored-by: Ferdinand Schober <ferdinand.schober@fau.de>
This commit is contained in:
@@ -59,6 +59,7 @@ pub enum IpcError {
|
||||
pub const DEFAULT_PORT: u16 = 4242;
|
||||
|
||||
#[derive(Debug, Default, Eq, Hash, PartialEq, Clone, Copy, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum Position {
|
||||
#[default]
|
||||
Left,
|
||||
|
||||
Reference in New Issue
Block a user