-
Notifications
You must be signed in to change notification settings - Fork 207
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
Remove unused code redux #594
Conversation
* remove copy_dir * make utils pub(crate) where possible * remove dead code in rustc version * make more things pub(crate) * only compile ApplyMode::Temporary in test mode * remove unused argument * remove unused `handle_html` argument * don't export metadata * remove `pub` where possible * remove unused import * make create_pool pub(crate) * fix bad merge * pub(crate) doesn't make sense in lib.rs Co-Authored-By: Koenraad Verheyden <[email protected]> * address review comments re: copy test * remote system dependencies from metadata this was causing confusion, see rust-lang#164 * re-comment failing test * fix failing test Co-authored-by: Koenraad Verheyden <[email protected]>
Before, it would append `doc/` on every recursive call. This moves the responsibility of adding `doc/` to the caller.
The last commits looks good! Great job on tracking down the When I test it locally the styling is all messed up, I'm not sure if this is related to this PR or that my local setup broke :( In the console I get a bunch of errors when loading resources that contain
|
Nevermind the above ☝️, this also happens if I build/run from the master branch... So... this PR seems good but I can't reliably test it now... And you might want to ask for a second opinion after the trouble the last PR I reviewed caused on production 🙈 |
It's ok, this has happened before even with me and pietro reviewing each others code ... We need test cases for builds (also, it would be nice to get #570 merged).
As you've noticed, this is not because of this PR. I'm confident this won't change any of the CSS (how could it?). The way I tested locally was by building crates ( |
Yeah, you are right. Just wanted to make sure this wasn't caused by an incorrect file copy. |
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.
Looks good to me!
This fixes the panic from before, I added a test and also built a couple crates locally.
I also refactored
copy_doc_dir
to remove the gratuitous use of PathBuf.r? @koenaad