-
Notifications
You must be signed in to change notification settings - Fork 377
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
Simplify config internals. #774
Conversation
849f369
to
447efcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
I don't like the look of having long-named Fn
constraints, instead I think it's more readable if they are just impl
bounds.
447efcf
to
51d299c
Compare
I've changed all the generic |
7740bac
to
9af7611
Compare
Simplifies the `config.rs` and `cross_toml.rs` to have more reusable functions, and implement logic in terms of these functions, so we can add more config options in the future. This also simplifies maintenance, since we can use 1-line logic for most config variables now.
9af7611
to
cb2abc3
Compare
@Emilgardis Any chance I can get a review on this? I'm working on adding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! I do feel there's more simplification possible here, but this is a nice step forward.
bors r+
Build succeeded: |
Simplifies the
config.rs
andcross_toml.rs
to have more reusable functions, and implement logic in terms of these functions, so we can add more config options in the future. This also simplifies maintenance, since we can use 1-line logic for most config variables now.