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

Unify deser impl (redux) #488

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Commits on Oct 23, 2023

  1. Introduce an error test case for deserialising a whole struct

    This tests, in particular, that the error messdage is as expected
    including the right key and filename.
    
    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    ijackson committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    fdfb4f8 View commit details
    Browse the repository at this point in the history
  2. impl Deserializer for Config: forward everything to cache

    This had open-coded copies of the impl for Value.  Replace them with
    calls to the impl for Value.  This reduces duplication.  It would
    allow us to change the impl for Value.
    
    Use a macro for the many very-similar functions.
    
    Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
    ijackson committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    10033cc View commit details
    Browse the repository at this point in the history