Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

value::GetError: add a constructor and make fields public #517

Merged
merged 2 commits into from
Aug 16, 2019
Merged

value::GetError: add a constructor and make fields public #517

merged 2 commits into from
Aug 16, 2019

Conversation

fengalin
Copy link
Contributor

The constructor allows instantiating the error outside of the module, e.g. for use in an assert_eq!.

People might want to access the public fields when handling the error. Besides, if the error was implemented using an enum, the fields would be public.

Fixes #515

@fengalin
Copy link
Contributor Author

Failures on nightly & beta are unreleated. They most probably are a cause by #513 and might explain why it failed on Windows 32bits (they occur in tests subclass::object::test::{test_signal_return_wrong_type, test_signal_return_wrong_object_type}).

I'm on it, and will submit a separate PR.

@fengalin
Copy link
Contributor Author

I'll rebase once #519 is merged

The constructor allows instantiating the error outside of the module,
e.g. for use in an `assert_eq!`.

People might want to access the public fields when handling the error.
Besides, if the error was implemented using an `enum`, fields would be
public.
@sdroege sdroege merged commit 3813f4d into gtk-rs:master Aug 16, 2019
@fengalin fengalin deleted the value_get_error_pub_fields branch August 16, 2019 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make glib::value::GetError fields publics
2 participants