Fixed Rust compiler warnings and added error handling
Fixed Rust compiler warnings and added error handling

rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp,rellermeyer/99tsp