Skip to content

Conversation

9999years
Copy link
Contributor

Fixes errors while running (e.g.) cargo fix:

error[E0433]: failed to resolve: could not find `DiskCache` in `cached`
   --> examples/disk.rs:20:1
    |
20  | / #[io_cached(
21  | |     disk = true,
22  | |     time = 30,
23  | |     map_error = r##"|e| ExampleError::DiskError(format!("{:?}", e))"##
24  | | )]
    | |__^ could not find `DiskCache` in `cached`
    |
note: found an item that was configured out
   --> cached/src/lib.rs:241:18
    |
241 | pub use stores::{DiskCache, DiskCacheError};
    |                  ^^^^^^^^^
note: the item is gated behind the `disk_store` feature
   --> cached/src/lib.rs:239:7
    |
239 | #[cfg(feature = "disk_store")]
    |       ^^^^^^^^^^^^^^^^^^^^^^
    = note: this error originates in the attribute macro `io_cached` (in Nightly builds, run with -Z macro-backtrace for more info)

Fixes errors while running (e.g.) `cargo fix`:

```
error[E0433]: failed to resolve: could not find `DiskCache` in `cached`
   --> examples/disk.rs:20:1
    |
20  | / #[io_cached(
21  | |     disk = true,
22  | |     time = 30,
23  | |     map_error = r##"|e| ExampleError::DiskError(format!("{:?}", e))"##
24  | | )]
    | |__^ could not find `DiskCache` in `cached`
    |
note: found an item that was configured out
   --> cached/src/lib.rs:241:18
    |
241 | pub use stores::{DiskCache, DiskCacheError};
    |                  ^^^^^^^^^
note: the item is gated behind the `disk_store` feature
   --> cached/src/lib.rs:239:7
    |
239 | #[cfg(feature = "disk_store")]
    |       ^^^^^^^^^^^^^^^^^^^^^^
    = note: this error originates in the attribute macro `io_cached` (in Nightly builds, run with -Z macro-backtrace for more info)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant