Skip to content
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

Merged
merged 2 commits into from Jul 7, 2019
Merged

Conversation

tathanhdinh
Copy link
Contributor

The PR does:

@tathanhdinh tathanhdinh mentioned this pull request Jun 29, 2019
@tathanhdinh
Copy link
Contributor Author

It would not compile since it depends on a PR of xen-sys


pub const PAGE_SHIFT: u32 = xenctrl_sys::XC_PAGE_SHIFT;
Copy link
Owner

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

Copy link
Contributor Author

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.

src/lib.rs Outdated

pub fn new() -> Result<Self,Error> {
impl XenControl {
pub fn from(
Copy link
Owner

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 ?

@tathanhdinh
Copy link
Contributor Author

Sorry, I will change this.

@Wenzel
Copy link
Owner

Wenzel commented Jul 7, 2019

Merging this one !

@Wenzel Wenzel merged commit bbb8b2f into Wenzel:master Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants