Skip to content
  • thiolliere's avatar
    improve storage build type checking (#1914) · 66bc864f
    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();
    ```
    66bc864f