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

prc error type does not implement Error trait #11

Open
ScanMountGoat opened this issue Jan 3, 2023 · 0 comments
Open

prc error type does not implement Error trait #11

ScanMountGoat opened this issue Jan 3, 2023 · 0 comments

Comments

@ScanMountGoat
Copy link
Member

The current struct is hard to use with existing Rust syntax like ? or Box<dyn Error>>.

prc-rs/src/prc_trait.rs

Lines 42 to 47 in 29b8981

#[derive(Debug)]
pub struct Error {
pub path: Vec<ErrorPathPart>,
pub position: std::io::Result<u64>,
pub kind: ErrorKind,
}

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