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
We're seeing some new warnings in the data-formats module, I think due to a new version of rust.
warning: elided lifetime has a name
--> data-formats/src/ownershipvoucher.rs:330:45
|
329 | impl<'a> OwnershipVoucher {
| -- lifetime `'a` declared here
330 | pub fn iter_entries(&'a self) -> Result<EntryIter> {
| ^^^^^^^^^ this elided lifetime gets resolved as `'a`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
--> data-formats/src/constants/mod.rs:350:64
|
350 | #[derive(Debug, Clone, Copy, Serialize_repr, Deserialize_repr, FromPrimitive, PartialEq, Eq)]
| ^------------
| |
| `FromPrimitive` is not local
| move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_MessageType`
...
353 | pub enum MessageType {
| ----------- `MessageType` is not local
|
= note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed
= note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_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: `#[warn(non_local_definitions)]` on by default
= note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
We're seeing some new warnings in the data-formats module, I think due to a new version of rust.
The text was updated successfully, but these errors were encountered: