-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 utf8 dependency. #4460
remove utf8 dependency. #4460
Conversation
could you please also fix the clippy warnings? |
@sylvestre what's your opinion on the unused code? I think we should delete it if we're not using it. |
as we are forking the lib, yes |
FWIW this is what I meant by "relevant code" in #4289: copy the parts you actually use. |
Indeed! @publicmatt to answer this question then:
Let's only use the relevant code like @SimonSapin suggests :) |
That makes sense - thanks for the guidance. |
@publicmatt do you have an update? |
I just pushed an update where I removed all dead code from the utf8 crate that was incorporated. I'm not sure what the merge process looks like - should I squash all those commits or does that happen with the pull request? |
We usually keep the commits, but we squash sometimes if a contributor made a mess of the history. So I'd be nice if you could clean those up. In this case I think 1 commit would suffice. |
29e3a3a
to
60b227f
Compare
Makes sense! I did the following to combine my mess of commits:
I think that's right?? |
I usually use interactive rebase for this. But I think it's correct :) |
Getting acquainted with all the checks - I'll fix them up and push again. |
Needs rustfmt & clippy fixes please :) |
58cc38d
to
2e75372
Compare
I ran and fixed suggestions from: |
Co-authored-by: Daniel Hofstetter <[email protected]>
Co-authored-by: Daniel Hofstetter <[email protected]>
Co-authored-by: Daniel Hofstetter <[email protected]>
GNU testsuite comparison:
|
First time contributor. I wanted to help so I plucked an issue with the "good first issue" tag.
This commit addresses #4289
Summary:
The author of one of the
wc
dependencies opened an issue stating that the crate and repo were being deprecated. They suggested incorporating what was needed into coreutils directly and removing the dependency. I incorporated and builtuu_wc
which should fix this issue.Of note: there are a few 'unused' warnings in the incorporated code - should I try to remove that as well?