From e249727c3eab0800e6dba6f97ba1931ed5192ea7 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Mon, 13 Apr 2020 13:30:55 +0100 Subject: [PATCH] allow Tile::from to be inlined --- src/tile.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tile.rs b/src/tile.rs index d79009a..6f9d2e1 100644 --- a/src/tile.rs +++ b/src/tile.rs @@ -11,6 +11,7 @@ pub struct Tile { } impl From for Tile { + #[inline] fn from(string: String) -> Tile { let mut lines: Vec<&str> = string.lines().collect();