W0002: share(...) on a Copy value is unnecessary
Generated from rellum-diagnostics/src/db.rs.
Explanation
Copy values can already be duplicated freely. share() only changes behavior for Move values that need tick-scoped shared handles.
Common causes
- wrapping Int, Bool, Char, or other Copy values in share()
- applying share() mechanically without checking ownership
Canonical fixes
- remove share() and use the value directly
Before:
share(count)
After:
count
Code example
share(count)