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