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

Communicate more detail about what specifically is unsupported across FFI #328

Merged
merged 1 commit into from Aug 17, 2021

Conversation

baumanj
Copy link
Contributor

@baumanj baumanj commented Aug 8, 2021

This is in support of https://bugzilla.mozilla.org/show_bug.cgi?id=1696045

Additionally, add more tests and do some cleanup

@baumanj baumanj self-assigned this Aug 8, 2021
Copy link
Collaborator

@kinetiknz kinetiknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Err(Error::UnsupportedDetail(status, _msg)) if status == expected_status => {}
Err(Error::UnsupportedDetail(status, _msg)) if status != expected_status => {
panic!(
"Error message mismtatch\nExpected: {:?}\nFound: {:?}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo in mismatch

.map(std::fs::canonicalize)
.map(Result::unwrap)
.collect()
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a line break

@baumanj baumanj merged commit 2851627 into master Aug 17, 2021
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