-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Remove default config from bootstrap #145352
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
base: master
Are you sure you want to change the base?
Remove default config from bootstrap #145352
Conversation
This comment has been minimized.
This comment has been minimized.
e1f4e5c
to
9662ff8
Compare
This comment has been minimized.
This comment has been minimized.
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.
Heh, I had feedback for you, but I see that Clippy did it for me in one of the commits xD Let me know once it's ready and I'll check the changes locally, but in general looks great.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a53f060
to
d22b2a4
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #145407) made this pull request unmergeable. Please resolve the merge conflicts. |
fdcd154
to
77c3d6e
Compare
This comment has been minimized.
This comment has been minimized.
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.
Let me know if it's ready for another round of review :)
impl<'a> DownloadContext<'a> { | ||
#[allow(clippy::too_many_arguments)] | ||
pub fn new( | ||
path_modification_cache: Arc<Mutex<HashMap<Vec<&'static str>, PathFreshness>>>, |
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.
I would personally get rid of the new
function. It has so many arguments and it's quite hard to see quickly what should be passed to them. Constructing the download context using the struct init syntax is more explicit.
This PR removes the default config initialization from parse_inner, as it introduced many assumptions during config setup. Instead, each variable is now manually initialized to eliminate certain invariants in parse_inner and streamline the process.
The PR is still a WIP and has been opened for an initial review.
r? @Kobzol