reduced overhead by passing an owned string
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
pub fn solve(puzzle: String) -> u64 {
|
||||
pub fn solve(puzzle: &str) -> u64 {
|
||||
let mut solution: u64 = 0;
|
||||
|
||||
let mut dial: i32 = 50;
|
||||
|
||||
Reference in New Issue
Block a user