Skip to content

Functions that return storage prefixes should return &[u8] #93

@mooori

Description

@mooori

The functions that return storage prefixes (e.g. Pausable::pa_storage_key) should return &[u8] instead of &'static [u8]. This was pointed out by @birchmd here.

It is a trivial change for all plugins except AccessControllable as described here.

Steps to resolve this issue:

  • Refactor the default implementation of AccessControllable such that acl_storage_prefix can take parameter &self.
  • Change the corresponding functions of all plugins to return &[u8].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions