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

ToolError is unnameable from outside #2

Closed
andylizi opened this issue May 13, 2022 · 1 comment
Closed

ToolError is unnameable from outside #2

andylizi opened this issue May 13, 2022 · 1 comment

Comments

@andylizi
Copy link

CorruptedTagData {
///
/// The id of the corrupted tag.
///
tag_id: u64,
///
/// An error describing why the data is corrupted.
///
problem: ToolError,
},

One of the variants of TagIteratorError uses the ToolError type, but the latter is not exported, making it "unnamable" from outside. This is the kind of situation described in rust-lang/rust#34537. I'd like to access data stored in this error, but there's no way to extract it.

Can you consider exporting ToolError (and maybe reexport it in webm-iterable)?

@austinleroy
Copy link
Owner

Thanks for bringing this to my attention! The fact that it wasn't already exported was simply an oversight. I will make the change and push up version 0.3.2 to resolve this.

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

2 participants