improve storage build type checking (#1914)

* 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();
```
This commit is contained in:
thiolliere
2019-03-04 10:49:56 +01:00
committed by GitHub
parent a81f7f48a0
commit 66bc864f29
6 changed files with 13 additions and 10 deletions