Trait bound linting / reformatting to where clauses

I searched the rustfmt config options and clippy lints, but could not find anything.
In a code base I want to enforce trait bounds by where clauses.

I.e. I want:

fn foo<T>()
where
    T: Bar,
{}

and never

fn foo<T: Bar>() {}

How can I enforce that in my project?

I think you're looking for inline_trait_bounds in clippy::restriction:

Thank you. How did I miss that? :smiley:

Only lints functions and method declararions. Bounds on structs, enums, and impl blocks are not yet covered.

That's not ideal, but I guess it's the best I get with minimal effort.