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

Fixing anyhow references in service macro #899

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Fixing anyhow references in service macro #899

merged 3 commits into from
Nov 15, 2024

Conversation

cool-ant
Copy link
Member

No description provided.

@cool-ant cool-ant marked this pull request as ready for review November 13, 2024 16:27
@@ -48,4 +48,25 @@ mod tests {

let _after = service_macro_impl(attr, before);
}

#[test]
// `service` macro should expand without requiring a `use` to provide its deps
Copy link
Collaborator

Choose a reason for hiding this comment

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

It always expanded successfully. The generated code just didn't compile.

Copy link
Member Author

@cool-ant cool-ant Nov 13, 2024

Choose a reason for hiding this comment

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

ok, comment updated for accuracy.
And test_psibase_macros actually exercises this code, ensuring that the expanded code compiles.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The original comment accurately described the test. It's just not a very useful test.

@cool-ant cool-ant merged commit 914093d into main Nov 15, 2024
4 checks passed
@cool-ant cool-ant deleted the mm/anyhow-fix branch November 15, 2024 21:12
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