Skip to content

Commit a92c237

Browse files
committed
clippy
1 parent e839496 commit a92c237

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

openssl/src/cipher_ctx.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ impl CipherCtxRef {
581581
/// output size check removed. It can be used when the exact
582582
/// buffer size control is maintained by the caller.
583583
///
584-
/// SAFETY: The caller is expected to provide `output` buffer
584+
/// # Safety
585+
///
586+
/// The caller is expected to provide `output` buffer
585587
/// large enough to contain correct number of bytes. For streaming
586588
/// ciphers the output buffer size should be at least as big as
587589
/// the input buffer. For block ciphers the size of the output
@@ -693,7 +695,9 @@ impl CipherCtxRef {
693695
/// This function is the same as [`Self::cipher_final`] but with
694696
/// the output buffer size check removed.
695697
///
696-
/// SAFETY: The caller is expected to provide `output` buffer
698+
/// # Safety
699+
///
700+
/// The caller is expected to provide `output` buffer
697701
/// large enough to contain correct number of bytes. For streaming
698702
/// ciphers the output buffer can be empty, for block ciphers the
699703
/// output buffer should be at least as big as the block.

openssl/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
//! ```
120120
#![doc(html_root_url = "https://docs.rs/openssl/0.10")]
121121
#![warn(rust_2018_idioms)]
122-
#![allow(clippy::uninlined_format_args)]
122+
#![allow(clippy::uninlined_format_args, clippy::needless_doctest_main)]
123123

124124
#[doc(inline)]
125125
pub use ffi::init;

0 commit comments

Comments
 (0)