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

Remove new() from CheckFloat, Repack and Snip #197

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Remove new() from CheckFloat, Repack and Snip #197

merged 1 commit into from
Jan 20, 2020

Conversation

axic
Copy link
Member

@axic axic commented Jan 18, 2020

Follow up of #161.
Depends on #198.

use super::{ChiselModule, ModuleConfig, ModuleError, ModuleKind, ModuleTranslator};
use super::{ChiselModule, ModuleError, ModuleKind, ModuleTranslator};

impl From<std::num::ParseIntError> for ModuleError {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could just implement From<E: Error> for ModuleError so that we can use the ? operator globally. In the end it's all a Custom enum value.

@axic axic merged commit 31e4575 into master Jan 20, 2020
@axic axic deleted the remove-new branch January 20, 2020 22:54
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.

2 participants