Closed CasualX closed 8 years ago
Change the match guard to be part of the pattern.
Change "".to_string() to a more idiomatic String::new() to create a new String without memory allocation.
"".to_string()
String::new()
String
Via reddit.
Thank you!
Change the match guard to be part of the pattern.
Change
"".to_string()
to a more idiomaticString::new()
to create a newString
without memory allocation.Via reddit.