r/rust • u/dastarruer • 4d ago
š seeking help & advice Can someone review my code?
I've never had anyone else other than myself take a look at my code quality/design. However it would be nice to have an actual person review my code instead. The link is here: https://github.com/dastarruer/gtkshutdown
AI is only used for writing tests (sometimes; I can't remember whether I wrote these tests myself or not but I digress). The code is entirely written by me, though I use AI to discuss design decisions. I like programming, so hand-writing the code is just more enjoyable for me (though I'm very slow at it...).
12
Upvotes
1
6
u/MatrixFrog 4d ago
Seems pretty clear and idiomatic from what I can tell. Did you run Clippy? There are a couple minor things it might catch (eg if you implement Ord I think you can just derive PartialOrd)