allow inlining (this did not provide a statistically significant performance boost - oh well)
This commit is contained in:
@@ -9,6 +9,7 @@ pub struct Palette {
|
||||
}
|
||||
|
||||
impl From<String> for Palette {
|
||||
#[inline]
|
||||
fn from(string: String) -> Palette {
|
||||
let lines: Vec<&str> = string.lines().collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user