• thiolliere's avatar
    improve storage build type checking (#1914) · 28ac1b14
    thiolliere authored
    * force build closure in decl_storage! to return explicit type
    * fix when type was different
    
    Note: it breaks API but it is easy to upgrade: just do the conversion from encode type to the final type yourself in the build closure:
    
    ```rust
    Encode::using_encoded(&value, |mut value| Decode::decode(&mut v)).unwrap();
    ```
    28ac1b14