Some functions that return storage prefixes returned Vec<u8> while &'static [u8] would suffice. This PR changes these functions to return the latter. This avoids unnecessary clones as pointed out in this external issue.
Breaking changes
The return type changes from Vec<u8> to &'static [u8] for
Some functions that return storage prefixes returned
Vec<u8>
while&'static [u8]
would suffice. This PR changes these functions to return the latter. This avoids unnecessary clones as pointed out in this external issue.Breaking changes
The return type changes from
Vec<u8>
to&'static [u8]
forOwnable::owner_storage_key
Pausable::pa_storage_key
The bytes which are returned do not change.