u/manuelarte

▲ 12 r/learnrust+1 crossposts

Rust linter for method ordering (looking for feedback)

Hi,

I'm learning Rust (I have experience with Java and Go) and built a small linter funcorder-rs.
It checks that inside impl blocks, methods are ordered as:

  1. Constructors (pub fn new() -> Self etc.).
  2. Public methods.
  3. Private methods

More than looking if you guys find it useful (which it's also nice) I am wondering if I am using idiomatic Rust, best practices, etc.

This is the link: https://github.com/manuelarte/funcorder-rs

Cheers!

reddit.com
u/manuelarte — 3 days ago