Skip to content

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

Merged
axic merged 1 commit intomasterfrom
remove-new
Jan 20, 2020
Merged

Remove new() from CheckFloat, Repack and Snip#197
axic merged 1 commit intomasterfrom
remove-new

Conversation

@axic
Copy link
Copy Markdown
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
Copy Markdown
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