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

Avoid use of fmt in the main package. #456

Merged
merged 3 commits into from
Feb 20, 2023
Merged

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Feb 19, 2023

This adds a String() method to ClientHook so we can avoid using fmt for that, then removes the last use of fmt in the main package, per #364.

Before closing that issue, I think I'd still like to get it out of the flowcontrol package hierarchy at least, and maybe elsewhere if practical.

This adds a String() method to ClientHook so we can avoid using fmt for
that, then removes the last use of fmt in the main package, per capnproto#364.

Before closing that issue, I think I'd still like to get it out of the
flowcontrol package hierarchy at least, and maybe elsewhere if
practical.
@zenhack
Copy link
Contributor Author

zenhack commented Feb 19, 2023

I was mistaken, there is at least one more use of fmt in the main package (in list.go)

@zenhack
Copy link
Contributor Author

zenhack commented Feb 19, 2023

Test failures were because I forgot to add a String() for dummyHook; fixed.

...so it implements ClientHook again.
@zenhack
Copy link
Contributor Author

zenhack commented Feb 19, 2023

Added another commit that removes the dep from flowcontrol as well.

@zenhack
Copy link
Contributor Author

zenhack commented Feb 19, 2023

...apparently I'm bad at remembering to test before pushing today. Fixed.

@lthibault lthibault merged commit ea5bd0e into capnproto:main Feb 20, 2023
@zenhack zenhack deleted the fmt-mainpkg branch February 22, 2023 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.

2 participants