Skip to content

Commit 9d4ba09

Browse files
chore(derive): update syn from 1 to 2 (#156)
Signed-off-by: Michael Zhalevich <[email protected]>
1 parent 5dd49ce commit 9d4ba09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

derive-encode/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "prometheus-client-derive-encode"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
authors = ["Max Inden <[email protected]>"]
55
edition = "2021"
66
description = "Auxiliary crate to derive Encode trait from prometheus-client."
@@ -14,7 +14,7 @@ documentation = "https://docs.rs/prometheus-client-derive-text-encode"
1414
[dependencies]
1515
proc-macro2 = "1"
1616
quote = "1"
17-
syn = "1"
17+
syn = "2"
1818

1919
[dev-dependencies]
2020
prometheus-client = { path = "../", features = ["protobuf"] }

derive-encode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn derive_encode_label_set(input: TokenStream) -> TokenStream {
2525
let attribute = f
2626
.attrs
2727
.iter()
28-
.find(|a| a.path.is_ident("prometheus"))
28+
.find(|a| a.path().is_ident("prometheus"))
2929
.map(|a| a.parse_args::<syn::Ident>().unwrap().to_string());
3030
let flatten = match attribute.as_deref() {
3131
Some("flatten") => true,

0 commit comments

Comments
 (0)