servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
462 stars 103 forks source link

Reformat and configure for auto-formatting #508

Closed kpreid closed 9 months ago

kpreid commented 9 months ago

This PR does 3 things:

  1. Apply rustfmt. The last PR that did this was #442.
  2. Unlike previous formatting PRs, add #[rustfmt::skip] to matrix code so that future formatting does not require manual reverts/exemptions.
  3. Add a formatting check to CI.

I hope that this will make future contributions easier, because authors will be able to use automatic formatting with no manual intervention and no superfluous changes.

nical commented 9 months ago

Sorry, I forgot about this one