concordium-std 10.1.0

A standard library for writing smart contracts for the Concordium blockchain in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
error[E0499]: cannot borrow `map` as mutable more than once at a time
  --> tests/state/map-multiple-state-ref-mut.rs:14:14
   |
13 |     let e1 = map.get_mut(&0u8).unwrap();
   |              --- first mutable borrow occurs here
14 |     let e2 = map.get_mut(&1u8).unwrap();
   |              ^^^ second mutable borrow occurs here
15 |     // Use them, so we are certain that their lifetimes overlap.
16 |     assert_eq!(*e1, *e2);
   |                 -- first borrow later used here