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

Fix assertions on Result values #33

Closed
briansmith opened this issue Oct 19, 2015 · 1 comment
Closed

Fix assertions on Result values #33

briansmith opened this issue Oct 19, 2015 · 1 comment

Comments

@briansmith
Copy link
Owner

From the Rust coding guidleines:

// Extract the contents of Ok variant; fail if Err
fn assert(self) -> V

// Extract the contents of Err variant; fail if Ok
fn assert_err(self) -> E

The code has been using assert(x.is_ok()) and assert(x.is_err()) instead.

@briansmith
Copy link
Owner Author

It turns out that the Rust coding guidelines are out of date. I filed aturon/aturon.github.io#3. Thus, there's nothing to do here.

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

No branches or pull requests

1 participant