diff options
Diffstat (limited to 'src/controls.rs')
| -rw-r--r-- | src/controls.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls.rs b/src/controls.rs index 101b401..1f96180 100644 --- a/src/controls.rs +++ b/src/controls.rs @@ -47,7 +47,7 @@ pub enum Control { impl Control { - pub fn from_json(val: Value) -> Option<Control>{ + pub fn from_json(val: &Value) -> Option<Control>{ if let Value::String(control_type) = &val[0] { match control_type.as_str() { "move" => match Direction::from_json(&val[1]) { |
