RS.CLIPPY.MULTIPLE_INHERENT_IMPL
Multiple inherent impl that could be grouped
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: multiple_inherent_impl. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for multiple inherent implementations of a struct
Why restrict this?
Splitting the implementation of a type makes the code harder to navigate.
Example
struct X;
impl X {
fn one() {}
}
impl X {
fn other() {}
}
Could be written:
struct X;
impl X {
fn one() {}
fn other() {}
}