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
Make types like Box<dyn DynAccess>
implement Access
#78
Make types like Box<dyn DynAccess>
implement Access
#78
Conversation
by generalizing the P: Deref-implementation to ?Sized, and implementing Access for some `dyn DynAccess` trait object types. Not yet documented or polished, this commit's main purpose is to allow CI testing.
bc3b4ff
to
a113002
Compare
Box<dyn DynAccess>
implement Access
The failing clippy lints are unrelated to this PR. |
Older compiler version apparently fails in one of the dependencies ( |
Codecov Report
@@ Coverage Diff @@
## master #78 +/- ##
==========================================
+ Coverage 83.37% 83.97% +0.60%
==========================================
Files 18 18
Lines 1149 1161 +12
==========================================
+ Hits 958 975 +17
+ Misses 191 186 -5
|
@vorner I’ve addressed the unrelated CI failures (I don’t know if that’s the "proper" way to do this with the dependencies for 1.45 compilation, but it seems like it works); feel free to re-run CI. |
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.
Thanks for the provided fixes. There's also some miri, but I think that one should be dealt with separately… it's a new miri's capability that wasn't there before and needs some more investigation.
Seems like it indeed helps and it can be compiled on the ancient versions. If you also could adjust the documentation, stating that the wrapper is not necessary any more in many cases (are there any cases left where it is necessary? It needs to be left in place for backwards compatibility, but maybe if there's no use case for it any more, it could be deprecated and hidden from documentation).
} | ||
} | ||
|
||
// Should probably be moved to a more appropriate place / perhaps more extensively tested / etc |
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.
The more appropriate place is just the end of the file (not the middle), otherwise it is fine :-)
as already noted over in #77:
Similarly, you can use it for things like |
Hello again. Just wanted to check, are you still working on the docs, or did that one get lost in the rest of the discussion? 😇 Just that we both don't wait on something from the other side. |
Thanks for the ping. I didn’t misunderstand, but I haven’t written the docs yet either; I’ll try to allocate some time to this soon :-) |
Hello. I've discovered this still sits here. Not that I would have too much free time myself, but should I just take it over and write the docs, so it moves forward? |
I forgot this PR even exists, so ehm... sure, feel free to take over, thank you. |
Clean up & document the changes from previous commit from #78.
I've taken the main commit, put it onto current (which already had the CI issues mostly solved) master and made some docs for it and merged in #85. I'll try to collect few more outstanding PRs and release a new version soon. If I don't get around to it by the end of the year, feel free to ping me. Thank you for discovering the way to do this :-) |
by generalizing the P: Deref-implementation to ?Sized,
and implementing Access for some
dyn DynAccess
trait object types.Not yet documented or polished, this PRs main purpose for now is to allow CI testing.