pub mod main { use crate::err::StatixErr; use lib::LINTS; pub fn main() -> Result<(), StatixErr> { let mut lints = (&*LINTS).clone(); lints.as_mut_slice().sort_by(|a, b| a.code().cmp(&b.code())); for l in lints { println!("W{:02} {}", l.code(), l.name()); } Ok(()) } }