From b02e7366c3c4b9edb5afa0d012952fad369b66a9 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Sep 2018 14:00:02 +0200 Subject: Change `parser::Action` to an enum It will now be a different type of `Vec` depending on whether it represents a string map or a command. We'll have new parsers to parse the action definition in a more fine-grained way. The `String` variant is just there for temporary backward compatibility while I figure out parsing for the other two. Still need to update the tests for this change. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 795d1d9..b51b165 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,6 +13,6 @@ extern crate xdg; mod cocoa_bridge; mod parser; -use parser::{HeadphoneButton, MapGroup, MapKind}; +use parser::{Action, HeadphoneButton, MapGroup, MapKind}; pub use cocoa_bridge::*; -- cgit v1.2.3