Implement macro: generated From<&mut Foo> for IFoo
implementation seems sketchy
#1290
Labels
bug
Something isn't working
This generated impl looks sketchy - what happens if you call it on a value that isn't wrapped in the
..._box
?windows-rs/crates/deps/macros/src/implement.rs
Line 160 in c604d64
e.g.
Generates:
Mistaken usage:
Happily, I've never actually needed this conversion, but if it is kept, I recommend making it unsafe like the to_impl method.
The text was updated successfully, but these errors were encountered: