allow Tile::from to be inlined

This commit is contained in:
Max Bradbury 2020-04-13 13:30:55 +01:00
parent 53204ba0f8
commit e249727c3e
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ pub struct Tile {
}
impl From<String> for Tile {
#[inline]
fn from(string: String) -> Tile {
let mut lines: Vec<&str> = string.lines().collect();