Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Do not run cargo fmt on this code base; the macro used to prevent duplication of code between f32 and f64 modules causes undesirable behavior.

Why not use #[rustfmt::skip]?



Good question. I tried marking that on several functions, but still ended up with inappropriate indents, related to the macros. Fortunately, it seems that a (relatively) recent `rustfmt` update resolved this. `fmt` now doesn't work properly, but it doesn't break the indents either.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: