-
Notifications
You must be signed in to change notification settings - Fork 36
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
[WIP] Add Guid type hiding raw ibv GUID #16
Conversation
Ah, I see what you're going for, but I think I wouldn't try a solution quite this drastic. It's fine to leave the |
2bf1e1a
to
25aeb5e
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.
Looking better! I left a few more inline comments.
25aeb5e
to
9e4c338
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.
This looks good, just one more nit!
src/lib.rs
Outdated
if guid == 0 { | ||
pub fn guid(&self) -> io::Result<Guid> { | ||
let guid_int = unsafe { ffi::ibv_get_device_guid(*self.0) }; | ||
let guid : Guid = guid_int.into(); |
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 think rustfmt
probably doesn't agree with the formatting here. Could you run rustfmt on the code and then update the PR?
9e4c338
to
eaf0a03
Compare
Create new Guid type that takes care of endianness conversion.
eaf0a03
to
501c9e7
Compare
Thanks! |
Create new Guid type that takes care of endianness conversion.