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

Resolver patch #580

Merged
merged 6 commits into from
Mar 5, 2020
Merged

Resolver patch #580

merged 6 commits into from
Mar 5, 2020

Conversation

dark64
Copy link
Member

@dark64 dark64 commented Mar 3, 2020

Added Resolver trait for code clarity

@dark64 dark64 requested a review from Schaeff March 3, 2020 13:29
type FilePath = PathBuf;

pub trait Resolver<E: Into<imports::Error>> {
Copy link
Member

Choose a reason for hiding this comment

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

Can <E: Into<imports::Error>> go on resolve rather than on the trait? I think it's good practice and it might also make things clearer


[dependencies]
zokrates_core = { version = "0.4.2", path = "../zokrates_core" }
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to keep fs_resolver independent from zokrates_core? I guess having a different crate for that trait definition?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could introduce a "common" crate that contains the trait definition, and the trait should be more generic then.

Copy link
Member

@Schaeff Schaeff left a comment

Choose a reason for hiding this comment

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

LGTM!

@Schaeff Schaeff merged commit 72d584b into Zokrates:develop Mar 5, 2020
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