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

rust: return string as an error #743

Merged
merged 2 commits into from
Feb 26, 2021
Merged

rust: return string as an error #743

merged 2 commits into from
Feb 26, 2021

Conversation

axic
Copy link
Member

@axic axic commented Feb 26, 2021

This is the string version of #677.

);
assert_eq!(
instance.checked_memory_slice(65535, 1).err().unwrap(),
"no memory is available"
Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sold we need to check in every case, but at least it is clear.

@axic axic requested review from chfast and gumb0 February 26, 2021 14:12
@codecov
Copy link

codecov bot commented Feb 26, 2021

Codecov Report

Merging #743 (f515f7f) into master (5d9c31a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #743   +/-   ##
=======================================
  Coverage   99.26%   99.26%           
=======================================
  Files          74       74           
  Lines       11414    11442   +28     
=======================================
+ Hits        11330    11358   +28     
  Misses         84       84           
Flag Coverage Δ
rust 99.86% <100.00%> (+<0.01%) ⬆️
spectests 90.68% <ø> (ø)
unittests 99.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bindings/rust/src/lib.rs 99.86% <100.00%> (+<0.01%) ⬆️

@axic axic merged commit fe665d8 into master Feb 26, 2021
@axic axic deleted the rust-error-string branch February 26, 2021 16:46
@gumb0 gumb0 mentioned this pull request Feb 26, 2021
@axic axic mentioned this pull request May 23, 2022
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.

3 participants