Closed EFanZh closed 11 months ago
Since C
is of type FnMut(Oid) -> bool
, calling it would require a mutable reference. Currently, with_hide_callback
accepts a shared reference (&C
), so theoretically, it should not able to call the function. I think this is a soundness issue, since it essentially converts &C
to &mut C
.
Thanks, can you provide some more context on this change? What is the motivation for it?