S0138: cannot dereference non-reference value
Generated from rellum-diagnostics/src/db.rs.
Explanation
Only safe references can be read through with the dereference operator. Owned values already contain their data and should be used directly.
Common causes
- using
*on an owned value such as Int or String - using
*on a value whose type is not Ref[T]
Canonical fixes
- remove
*, or pass a reference value such as&x
Before:
*x
After:
x
Code example
*x