diff --git a/prdoc/pr_7507.prdoc b/prdoc/pr_7507.prdoc new file mode 100644 index 0000000000000000000000000000000000000000..7f553298b0a8db10b19b76bce7e7379b3e4d9e27 --- /dev/null +++ b/prdoc/pr_7507.prdoc @@ -0,0 +1,9 @@ +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 diff --git a/substrate/frame/examples/view-functions/Cargo.toml b/substrate/frame/examples/view-functions/Cargo.toml index b52ad4e06e9fa9c32b3f0ad422198789825c4a4e..b159357581df5f84f420f42676ba45423cbce5ca 100644 --- a/substrate/frame/examples/view-functions/Cargo.toml +++ b/substrate/frame/examples/view-functions/Cargo.toml @@ -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 } diff --git a/substrate/primitives/consensus/beefy/src/payload.rs b/substrate/primitives/consensus/beefy/src/payload.rs index 9e792670fef5a70b58fa0e5a8a64dd066e5ed86f..2bc96548bdfff345292e8b9e12f735581a965828 100644 --- a/substrate/primitives/consensus/beefy/src/payload.rs +++ b/substrate/primitives/consensus/beefy/src/payload.rs @@ -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) })