E3089 Usage Errors
Usage
'%s()' can fail; use 'mut val, err = %s()' to handle the error, or 'mut val, _ = %s()' to discard it
When this occurs
This error is triggered when: '%s()' can fail; use 'mut val, err = %s()' to handle the error, or 'mut val, _ = %s()' to discard it
Example error message
error[E3089]:
'%s()' can fail; use 'mut val, err = %s()' to handle the error, or 'mut val, _ = %s()' to discard it
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.