Skip to content

remove unused val in generated code#635

Merged
adamw merged 3 commits intosoftwaremill:scala2from
road21:fix-unused-warnings
Mar 16, 2026
Merged

remove unused val in generated code#635
adamw merged 3 commits intosoftwaremill:scala2from
road21:fix-unused-warnings

Conversation

@road21
Copy link
Copy Markdown
Contributor

@road21 road21 commented Mar 12, 2026

Closes #634

@road21
Copy link
Copy Markdown
Contributor Author

road21 commented Mar 12, 2026

I guess this relates to changes from #628

@nigredo-tori could you also take a look, please?

Copy link
Copy Markdown

@nigredo-tori nigredo-tori left a comment

Choose a reason for hiding this comment

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

LGTM other than the function thing.

Comment thread core/src/main/scala/magnolia1/magnolia.scala Outdated
Comment thread core/src/main/scala/magnolia1/magnolia.scala Outdated
}

test("construct a Show instance for huge enums") {
val res = Show.gen[HugeEnum].show(HugeEnum.Case42)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for adding a test for this!

Comment thread core/src/main/scala/magnolia1/magnolia.scala Outdated
@road21
Copy link
Copy Markdown
Contributor Author

road21 commented Mar 16, 2026

@adamw Could you please take a look?

@adamw adamw merged commit 6d660d3 into softwaremill:scala2 Mar 16, 2026
5 checks passed
@adamw
Copy link
Copy Markdown
Member

adamw commented Mar 16, 2026

@road21 Sure, merged, thanks! :)

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.

3 participants