mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 04:45:43 +01:00
Following the Rust compiler bump, we can now update Clippy's MSRV we set in the configuration, which will improve the diagnostics it generates. Thus do so and clean a few of the `allow`s that are not needed anymore. Reviewed-by: Tamir Duberstein <[email protected]> Acked-by: Danilo Krummrich <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
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"
|