-
Notifications
You must be signed in to change notification settings - Fork 427
Drop Deref indirection for ChannelManager, etc
#4311
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
base: main
Are you sure you want to change the base?
Drop Deref indirection for ChannelManager, etc
#4311
Conversation
|
👋 Thanks for assigning @TheBlueMatt as a reviewer! |
|
If this looks good and works for language bindings, I/claude can do it for all the other traits. I feel like this is a solid improvement. |
|
@TheBlueMatt would appreciate conceptual review to make sure this works for the language bindings. |
|
Actually, it looks like this might not work for 1.75 ( |
It means updating the generation logic to support it, but it certainly isn't directly problematic.
You can write it as |
|
Conceptually tho yea imo we should do this. Its "the right way" to do it in rust. |
1c6cf54 to
584fec7
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4311 +/- ##
==========================================
- Coverage 86.58% 86.57% -0.02%
==========================================
Files 158 158
Lines 102367 102194 -173
Branches 102367 102194 -173
==========================================
- Hits 88636 88475 -161
+ Misses 11316 11303 -13
- Partials 2415 2416 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tnull
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that you'll need to bump lightning-liquidity's version to 0.3.0+git to get the SemVer checks to pass, as it's an API-breaking change.
Useful for upcoming commits where we otherwise break SemVer checks by changing the ALiquidityManager associated types.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
584fec7 to
ad7aaa5
Compare
Reduces generics and verbosity across the codebase, should provide equivalent behavior.
Inspired by #4309 (comment). Basically, instead of
Derefindirection we insteadimpl<T: Trait, D: Deref<Target = Trait>> Trait for Dfor all our traits.