22 lines
748 B
TOML
22 lines
748 B
TOML
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
msrv = "1.85.0"
|
|
|
|
check-private-items = true
|
|
|
|
disallowed-macros = [
|
|
# The `clippy::dbg_macro` lint only works with `std::dbg!`, thus we simulate
|
|
# it here, see: https://github.com/rust-lang/rust-clippy/issues/11303.
|
|
{ path = "kernel::dbg", reason = "the `dbg!` macro is intended as a debugging tool", allow-invalid = true },
|
|
]
|
|
|
|
[[disallowed-methods]]
|
|
path = "core::ffi::CStr::as_ptr"
|
|
replacement = "kernel::prelude::CStrExt::as_char_ptr"
|
|
reason = "kernel's `char` is always unsigned, use `as_char_ptr` instead"
|
|
|
|
[[disallowed-methods]]
|
|
path = "core::ffi::CStr::from_ptr"
|
|
replacement = "kernel::prelude::CStrExt::from_char_ptr"
|
|
reason = "kernel's `char` is always unsigned, use `from_char_ptr` instead"
|