Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallible storage get and set methods for Lazy and Mapping #1910

Merged
merged 25 commits into from
Oct 27, 2023

Commits on Sep 12, 2023

  1. wip

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f7a50c5 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. draft fallibe getter

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    d1bbb7e View commit details
    Browse the repository at this point in the history
  2. implement it in macros

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    377c1a7 View commit details
    Browse the repository at this point in the history
  3. typos

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    2af2748 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    dc4af88 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. add tests for lazy

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    b93ccec View commit details
    Browse the repository at this point in the history
  2. dedicated error variant

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    a461884 View commit details
    Browse the repository at this point in the history
  3. implement try API for mapping

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    8c9c3aa View commit details
    Browse the repository at this point in the history
  4. clippy, fmt, spellcheck

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    8f064c9 View commit details
    Browse the repository at this point in the history
  5. fmt

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    2f524f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. checked_add

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    fdfe5e2 View commit details
    Browse the repository at this point in the history
  2. fmrt

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    2656609 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Configuration menu
    Copy the full SHA
    98ba420 View commit details
    Browse the repository at this point in the history
  2. saturating_add prevents panicking

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    a2c991b View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. fix ui test

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    ecb504c View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. use chained expressions to calculate the encoded size

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    c6565cc View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. the key size adds to the encoded size too for getters

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    44de2cf View commit details
    Browse the repository at this point in the history
  2. exercise the fallible storage methods in the mapping integration test

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    da9681d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d7acfe View commit details
    Browse the repository at this point in the history
  4. cleanup integration test

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    8f8f7eb View commit details
    Browse the repository at this point in the history
  5. add lazy test for key sizes

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    94c8c7b View commit details
    Browse the repository at this point in the history
  6. consistent naming

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    35b045b View commit details
    Browse the repository at this point in the history
  7. consider key size in try_insert too

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    570f3ab View commit details
    Browse the repository at this point in the history
  8. fmt

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    1ead741 View commit details
    Browse the repository at this point in the history
  9. do not depend on a particular static buffer size in the mapping test

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    080fec0 View commit details
    Browse the repository at this point in the history