2020/03: inline from
function
This makes the input parsing about 3% faster
This commit is contained in:
parent
7a8d2983af
commit
689d970372
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user