-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split puppet.rs into a module #48
Conversation
Didn't mean to include some changes here, but w/e. |
CI is failing due to tests that were failing before my changes. |
Yeah the CI is way too complex for this project, I was wrong to take it from Jon Gjengset... x_x I'm gonna completely change it once the renderless PR is merged. |
We had a long discussion about this file split on Discord. We couldn't get to understand our differing opinions unfortunately, but in any case I'll sum up why I don't agree to this change:
So yeah, in short, I won't accept this PR. But if you just split the display impls into their own single file I will :) |
Maybe reopen this so i can just push my changes rather than opening another PR. |
Hm ok |
Signed-off-by: Dallas Strouse <dastrouses@gmail.com>
cc85c88
to
5d5b2fd
Compare
Need input on if I should also do a try_from.rs. |
So far the split is good. I think there's no need for a |
Right now we implement TryFrom ourselves, which can be annoying when it comes to updating enum fields. Strum handles this for us automatically, lessening the room for human error. We can't use it right now if I understand this issue correctly, since we can't return a custom error type: Peternator7/strum#13 Signed-off-by: Dallas Strouse <dastrouses@gmail.com>
You underestimate just how annoyed I can get at code sometimes 😀 |
Since this has been hanging around, I've decided to not merge this. Kinda unnecessary at this point. Even for splitting I'll just let all the puppet structs be in one nice readable file like they always were. |
Previously, everything regarding puppet was in puppet.rs. Now, it's split up into puppet/ so that it's easier to manage and search though.
The API should be the same, save for the enum modifications made.
The modifications to the enums are meant to better reflect their usage, and real-world examples. For example, instead of ViralLicense, it's SameLicense. Instead of Copyleft, it's Permissive.