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
add: Hash trait for WatchDescriptor #57
add: Hash trait for WatchDescriptor #57
Conversation
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.
Thanks for the pull request! I've added a single comment. Once that is addressed, this is ready to merge.
If you don't have time or don't want to bother right now, let me know. I can make the change myself later.
inotify/src/lib.rs
Outdated
@@ -33,6 +33,7 @@ use std::os::unix::ffi::OsStrExt; | |||
use std::os::unix::io::RawFd; | |||
use std::path::Path; | |||
use std::slice; | |||
use std::collections::HashMap; |
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.
You should be able to remove this. Deriving traits shouldn't require any imports.
The compiler also warns about this import being unused.
I've implemented the requested changes, thanks! |
Can you squash the commits into a single one? That way it's easier to read later. If you're unsure about how to do that, something like Again, if you don't have time or can't be bothered, let me know. I can do it later, no problem. Thanks! |
Done! |
Hmm, still seeing two commits. Maybe you forgot to push the branch? |
It's at 4 commits now, I think I'm doing something wrong! I'm sorry! |
No worries! Git can be quite complicated if you're not used to it. That third commit is really weird. It just repeats the change from the third commit, which shouldn't really be possible. Oh well :-) I'm happy to take care of this for you, but if you want to figure out how to solve this yourself, here's what I would try:
As I said, I'm happy to do it for you. I just figured you might want some pointer on how to solve such problems with Git in the future. Let me know if you want me to do it, or if you have any questions! [1] |
06eb0df
to
dae65bd
Compare
Done! Thanks for the git help! I'm quite new to git/github, and still figuring things out. I will take some time out to go through the man pages. Thank you for your patience. |
You're welcome, and thanks again for the pull request! And regarding Git, it's actually quite elegant under the surface. The only problem is that the elegance is hidden under a thick layer of weirdness :-) |
I've made a new PR after breaking the previous one due to a clunky rebase/squash.
I've added the
Hash
to theWatchDescriptor
struct, to allow it to be used forHashMap
lookup.