rustls / rustls-ffi

Use Rustls from any language
Other
124 stars 31 forks source link

Nightly clippy fixes. #340

Closed cpu closed 1 year ago

cpu commented 1 year ago

Description

Small branch fixing some failures caught by the cron CI job's nightly clippy task.

lib: fix small rustdoc mistake

New nightly clippy is flagging one of the lines of rustdoc comment in lib.rs:

error: this item has comments with 4 forward slashes (////). These look like doc comments, but they aren't

The fix is simple, use only 3 forward slashes :-)

cipher: remove redundant call.

Nightly clippy is flagging a redundant call in cipher.rs:

call to .deref() on a reference in this situation does nothing

This commit removes the call to deref and also the now unnecessary import of the std::ops::Deref trait.