get segments from borrowed str instead of String for flexibility
This commit is contained in:
@@ -125,7 +125,7 @@ impl Game {
|
||||
}
|
||||
|
||||
let string = string.trim_start_matches('\n').to_string();
|
||||
let mut segments = segments_from_string(string);
|
||||
let mut segments = segments_from_str(&string);
|
||||
|
||||
let mut name = "".to_string();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user