Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning with -Z minimal-versions
``` error: non-local `impl` definition, `impl` blocks should be written at the same level as their item --> src/rt/object.rs:14:43 | 14 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))] | -^^^^^^^^ | | | `Store` is not local | `Serialize` is not local | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Store` | = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint = note: `-D non-local-definitions` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(non_local_definitions)]` = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) ```
- Loading branch information