The mapping between code and its handler is static. We can drop the HashMap in favour of a static match expression. This has two benefits: 1. No more memory allocation and deallocation for the HashMap. 2. Shorter look-up time. Signed-off-by: Wei Liu <liuwe@microsoft.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||