2020/03: inline from function

This makes the input parsing about 3% faster
This commit is contained in:
kageru 2020-12-03 11:39:48 +01:00
parent 7a8d2983af
commit 689d970372
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -16,6 +16,7 @@ const STEP_RIGHT: [usize; 5] = [1, 3, 5, 7, 1];
const STEP_DOWN: [usize; 5] = [1, 1, 1, 1, 2];
impl From<char> for Tile {
#[inline]
fn from(c: char) -> Self {
match c {
'.' => Tile::Free,