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

Refactor ::derive_more absolute paths to just derive_more (#338) #344

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

tyranron
Copy link
Collaborator

@tyranron tyranron commented Mar 26, 2024

Resolves #338

Synopsis

At the moment, the derive_more macros cannot be re-exported or the derive_more crate cannot be renamed as the dependency, because expansions require ::derive_more module be present in the scope. See #338 for details.

Solution

Use derive_more::* paths instead of ::derive_more::* in expansions, allowing to provide this module in the scope on the call site even when derive_more is transitive dependency of the crate.

Checklist

  • Documentation is updated
  • Tests are added/updated (not required)
  • CHANGELOG entry is added (not required)

@tyranron tyranron added this to the 1.0.0 milestone Mar 26, 2024
@tyranron tyranron self-assigned this Mar 26, 2024
@tyranron tyranron marked this pull request as ready for review March 27, 2024 14:45
@tyranron tyranron requested a review from JelteF March 27, 2024 14:45
@tyranron tyranron enabled auto-merge (squash) March 27, 2024 14:47
@tyranron tyranron merged commit 42d5251 into master Mar 27, 2024
17 checks passed
@tyranron tyranron deleted the 338-bikeshed-absolute-path branch March 27, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error ‘could not find derive_more in the list of imported crates’ when re-exporting macros
2 participants