Open willemneal opened 4 weeks ago
It should probably be using the Borrow
type instead, similar to:
We could make the change to Borrow
, but it'll technically be a breaking change, although for most people it won't because the original value should continue to work. If the change can be contributed before v22 release it could probably get in.
Since
into_val
takes a reference toself
, why does this method not use&K
?https://github.com/stellar/rs-soroban-sdk/blob/d40bd031c14fbd3d75cf4473486ef7ef15af3364/soroban-sdk/src/map.rs#L350-L352