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

fix(loupe-derive) Handle struct/enum with inlined generics. #14

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Mar 23, 2021

struct S<T: U> {}

was incorrectly handled, as the generated code looked like:

impl<T: U> MemoryUsage for S<T: U> {}

rather than:

impl<T: U> MemoryUsage for S<T> {}

This patch fixes that.

Hywan added 2 commits March 23, 2021 12:11
```rs
struct S<T: U> {}
```

was incorrectly handled, as the generated code looked like:

```rs
impl<T: U> MemoryUsage for S<T: U> {}
```

rather than:

```rs
impl<T: U> MemoryUsage for S<T> {}
```

This patch fixes that.
@Hywan Hywan added the bug Something isn't working label Mar 23, 2021
@Hywan Hywan self-assigned this Mar 23, 2021
@Hywan Hywan merged commit 8fa6204 into wasmerio:master Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants