-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
I wrote the following code, and got this error.
sslb.set_verify_callback(openssl::ssl::SslVerifyMode.PEER, |_, _| true);// accept all certificates
^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `openssl::ssl::SslVerifyMode { /* fields */ }`?
A better error would be to suggest openssl::ssl::SslVerifyMode::PEER
, because if the type has a member of this name, it is very likely a typo
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints