Addressing review comments:

1) use 4 spaces
2) result.is_err()