Skip to content
Snippets Groups Projects
Unverified Commit 49e381a9 authored by PG Herveou's avatar PG Herveou Committed by GitHub
Browse files

Fix compilation warnings (#7507)


This should fix some compilation warnings discovered under rustc 1.83

---------

Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent 135b7183
No related merge requests found
Pipeline #514812 waiting for manual action with stages
in 33 minutes and 41 seconds
title: 'Fix compilation warnings '
doc:
- audience: Runtime Dev
description: This should fix some compilation warnings discovered under rustc 1.83
crates:
- name: pallet-example-view-functions
bump: minor
- name: sp-consensus-beefy
bump: minor
......@@ -15,7 +15,7 @@ workspace = true
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", default-features = false, workspace = true }
codec = { default-features = false, workspace = true }
frame-metadata = { features = ["current"], workspace = true }
log = { workspace = true }
scale-info = { default-features = false, features = ["derive"], workspace = true }
......
......@@ -60,7 +60,7 @@ impl Payload {
pub fn get_all_raw<'a>(
&'a self,
id: &'a BeefyPayloadId,
) -> impl Iterator<Item = &Vec<u8>> + 'a {
) -> impl Iterator<Item = &'a Vec<u8>> + 'a {
self.0
.iter()
.filter_map(move |probe| if &probe.0 != id { return None } else { Some(&probe.1) })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment