Shizcow / dmenu-rs

A pixel perfect port of dmenu, rewritten in Rust with extensive plugin support
GNU General Public License v3.0
202 stars 9 forks source link

Apply rustfmt to the codebase #48

Closed Delapouite closed 1 year ago

Delapouite commented 1 year ago

Hello.

While I was skimming through the codebase through github.com, I was surprised to stumble upon very weirdly indented code which was very hard to follow :

Here's an example take from item.rs :

image

Indeed, after git cloning the repo on my local station, it turns out that the source code uses a mixed bag for spaces and tabs, so the problem remain in my text-editor.

I reckon it could be worthwhile to perform some cleanup with rustfmt across all rust files in order to alleviate the problem.

Thanks.

Shizcow commented 1 year ago

I've added make fmt which does the pre-requisite setup and then calls rustfmt. Unfortunately due to how the build system is set up, adding a github action to do this is not easily possible.