You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error on missed & in the access method is very bloated and a little hard to read. This is not something that has to change, but I figured it's better to note it here.
+ let cw_storage = CwStorage(deps.storage);+ let admins = ADMINS.access(&cw_storage).get()?;- let cw_storage = CwStorage(deps.storage);- let admins = ADMINS.access(cw_storage).get()?;
When the reference is omitted the error is as follows:
error[E0599]: the method `get` exists for struct `ItemAccess<CwEncoding, Vec<Addr>, StorageBranch<CwStorage<&dyn Storage>>>`, but its trait bounds were not satisfied
--> src/contract.rs:54:48
|
54 |let admins = ADMINS.access(cw_storage).get();
| ^^^ method cannot be called due to unsatisfied trait bounds
|
::: /home/jan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/storey-0.3.0/src/storage/branch.rs:23:1
|
23 | pub struct StorageBranch<S> {
| --------------------------- doesn't satisfy `_: StorageBackend` or `_: Storage` | = note: the following trait bounds were not satisfied: `storey::storage::branch::StorageBranch<cw_storey::CwStorage<&dyn Storage>>: storey_storage::backend::StorageBackend` which is required by `storey::storage::branch::StorageBranch<cw_storey::CwStorage<&dyn Storage>>: storey_storage::storage::Storage`
The text was updated successfully, but these errors were encountered:
The error on missed
&
in theaccess
method is very bloated and a little hard to read. This is not something that has to change, but I figured it's better to note it here.When the reference is omitted the error is as follows:
The text was updated successfully, but these errors were encountered: