rust: reenable lint unused_doc_comment

With just local exceptions
pull/13884/head
Philippe Antoine 1 year ago committed by Victor Julien
parent b59086210f
commit 6fa85d18f0

@ -511,6 +511,7 @@ pub type GetStateIdByName = unsafe extern "C" fn(*const c_char, u8) -> c_int;
pub type GetStateNameById = unsafe extern "C" fn(c_int, u8) -> *const c_char;
// Defined in app-layer-register.h
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
pub fn AppLayerRegisterProtocolDetection(parser: *const RustParser, enable_default: c_int) -> AppProto;

@ -171,6 +171,7 @@ pub struct SuricataFileContext {
pub files_sbcfg: &'static StreamingBufferConfig,
}
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
pub fn SCGetContext() -> &'static mut SuricataContext;

@ -50,6 +50,7 @@ pub enum DatasetType {
}
// Extern fns operating on the opaque Dataset type above
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
pub fn DatasetAdd(set: &Dataset, data: *const u8, len: u32) -> i32;

@ -23,6 +23,7 @@ use std::os::raw::{c_void};
use crate::core::*;
// Defined in util-file.h
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
pub fn FileFlowFlagsToFlags(flow_file_flags: u16, flags: u8) -> u16;

@ -30,6 +30,7 @@ struct CFrame {
}
// Defined in app-layer-register.h
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
#[cfg(not(test))]

@ -49,10 +49,6 @@
// just due to FFI.
#![allow(clippy::missing_safety_doc)]
// Allow /// cbindgen:ignore comments on extern blocks
// cf https://github.com/mozilla/cbindgen/issues/709
#![allow(unused_doc_comments)]
// Allow unknown lints, our MSRV doesn't know them all, for
// example static_mut_refs.
#![allow(unknown_lints)]

@ -24,6 +24,7 @@ use std::os::raw::c_long;
/// The Rust place holder for lua_State.
pub enum CLuaState {}
#[allow(unused_doc_comments)]
/// cbindgen:ignore
extern "C" {
fn lua_createtable(lua: *mut CLuaState, narr: c_int, nrec: c_int);

Loading…
Cancel
Save