Skip to content

Commit bf696d6

Browse files
authored
ci: bump MSRV to fix test jobs (#519)
* ci: bump MSRV to fix test jobs Signed-off-by: Luca BRUNO <lucab@lucabruno.net> * src: fix new linting warnings Signed-off-by: Luca BRUNO <lucab@lucabruno.net> --------- Signed-off-by: Luca BRUNO <lucab@lucabruno.net>
1 parent b7e8745 commit bf696d6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/rust.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
# Pinned toolchain for linting and benchmarks
12-
ACTIONS_LINTS_TOOLCHAIN: 1.70.0
12+
ACTIONS_LINTS_TOOLCHAIN: 1.78.0
1313
# Minimum supported Rust version (MSRV)
14-
ACTION_MSRV_TOOLCHAIN: 1.70.0
14+
ACTION_MSRV_TOOLCHAIN: 1.74.0
1515
EXTRA_FEATURES: "protobuf push process"
1616

1717
jobs:

src/registry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ impl RegistryCore {
183183

184184
// Write out MetricFamilies sorted by their name.
185185
mf_by_name
186-
.into_iter()
187-
.map(|(_, mut m)| {
186+
.into_values()
187+
.map(|mut m| {
188188
// Add registry namespace prefix, if any.
189189
if let Some(ref namespace) = self.prefix {
190190
let prefixed = format!("{}_{}", namespace, m.get_name());

static-metric/src/auto_flush_builder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ impl<'a> MetricBuilderContext<'a> {
714714
})#local_suffix_call,
715715
}
716716
} else {
717-
let prev_labels_ident = prev_labels_ident;
718717
quote! {
719718
#name: #member_type::from(
720719
#(

static-metric/src/builder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ impl<'a> MetricBuilderContext<'a> {
300300
})#local_suffix_call,
301301
}
302302
} else {
303-
let prev_labels_ident = prev_labels_ident;
304303
quote! {
305304
#name: #member_type::from(
306305
#(

0 commit comments

Comments
 (0)