-
Notifications
You must be signed in to change notification settings - Fork 6
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: error handling #3
Conversation
|
||
pub const PAGE_SHIFT: u32 = xenctrl_sys::XC_PAGE_SHIFT; |
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 need to export these constants as well
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.
Sorry, I forgot this. PR updated.
6d1cb29
to
1b00ae7
Compare
src/lib.rs
Outdated
|
||
pub fn new() -> Result<Self,Error> { | ||
impl XenControl { | ||
pub fn from( |
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.
Why did you replaced the new
function, which is a convention to have an object constructor, by the name from
?
You break the API here, and i don't understand what this brings us ?
Sorry, I will change this. |
1b00ae7
to
c5add66
Compare
Merging this one ! |
The PR does:
Xc
Xc naming #1