diff options
| author | Teddy Wing | 2018-08-08 06:10:13 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-08-08 06:11:31 +0200 |
| commit | 93341ab2b08a85da33d28782e7ffe2f4d8c855d3 (patch) | |
| tree | 90880b7da268d884ef850095b06c70692b1fe4ed | |
| parent | 243759530668001f3e94ec1822b299cf2c28803f (diff) | |
| download | dome-key-map-93341ab2b08a85da33d28782e7ffe2f4d8c855d3.tar.bz2 | |
Add `MapCollection` type alias
Further cleans up the `HashMap` definition in `DKMapGroup`.
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,10 +18,11 @@ pub struct Map { pub action: Action, pub kind: MapKind, } +type MapCollection = HashMap<Trigger, Map>; pub struct DKMapGroup { - maps: HashMap<Trigger, Map>, - modes: HashMap<Trigger, HashMap<Trigger, Map>>, + maps: MapCollection, + modes: HashMap<Trigger, MapCollection>, } #[cfg(test)] |
