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

remove generation of redundant package imports #102

Merged
merged 2 commits into from
Feb 9, 2022
Merged

remove generation of redundant package imports #102

merged 2 commits into from
Feb 9, 2022

Conversation

lewisjkl
Copy link
Contributor

@lewisjkl lewisjkl commented Feb 8, 2022

Closes #101.

@lewisjkl lewisjkl requested a review from Baccata February 8, 2022 20:28
@@ -43,8 +43,7 @@ object Renderable {

implicit def tupleRenderable[A](implicit
A: Renderable[A]
): Renderable[(String, A)] = (t: (String, A)) =>
A.render(t._2).addImport(t._1)
): Renderable[(String, A)] = (t: (String, A)) => A.render(t._2)
Copy link
Contributor

@Baccata Baccata Feb 8, 2022

Choose a reason for hiding this comment

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

I find this suspicious. The LHS of the tuple isn't used anymore, which means that this week's implicit is probably useless and its current usesites should be amended

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's fair, I will go through and cleanup the usesites

Copy link
Member

Choose a reason for hiding this comment

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

this week's implicit

😂

Copy link
Contributor

Choose a reason for hiding this comment

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

Lol, that's what happens when I look at github on the phone whilst being sleep deprived 😄

@Baccata Baccata merged commit ba0fa86 into main Feb 9, 2022
@Baccata Baccata deleted the issue-101 branch February 9, 2022 08:09
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.

Redundant package import
3 participants