JonasKruckenberg edited PR #9976.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
This should probably return a private type to ensure it can't be downcasted.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
- where is this function used?
- It should probably be
pub(crate)
instead.
bjorn3 edited PR review comment.
JonasKruckenberg updated PR #9976.
JonasKruckenberg submitted PR review.
JonasKruckenberg created PR review comment:
okay maybe this is stupid of me, but why would that be an issue?
JonasKruckenberg submitted PR review.
JonasKruckenberg created PR review comment:
yup, good catch 👍🏻
bjorn3 submitted PR review.
bjorn3 created PR review comment:
It is not that much of an issue, but if in the future we were to add an actually working profiler (eg by using atomics and aggregating statistics for all threads), it would technically be a breaking change to change the type stored in the
Box<dyn Any>
as now.downcast::<()>()
for consumers would fail. I don't think anyone will write code like that though.
fitzgen submitted PR review.
fitzgen merged PR #9976.
Last updated: Jan 24 2025 at 00:11 UTC