Skip to content

Commit

Permalink
chore(derive): update syn from 1 to 2 (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zhalevich <cheshirsky.code@gmail.com>
  • Loading branch information
cheshirskycode authored Aug 11, 2023
1 parent 5dd49ce commit 9d4ba09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions derive-encode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "prometheus-client-derive-encode"
version = "0.4.1"
version = "0.4.2"
authors = ["Max Inden <mail@max-inden.de>"]
edition = "2021"
description = "Auxiliary crate to derive Encode trait from prometheus-client."
Expand All @@ -14,7 +14,7 @@ documentation = "https://docs.rs/prometheus-client-derive-text-encode"
[dependencies]
proc-macro2 = "1"
quote = "1"
syn = "1"
syn = "2"

[dev-dependencies]
prometheus-client = { path = "../", features = ["protobuf"] }
Expand Down
2 changes: 1 addition & 1 deletion derive-encode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn derive_encode_label_set(input: TokenStream) -> TokenStream {
let attribute = f
.attrs
.iter()
.find(|a| a.path.is_ident("prometheus"))
.find(|a| a.path().is_ident("prometheus"))
.map(|a| a.parse_args::<syn::Ident>().unwrap().to_string());
let flatten = match attribute.as_deref() {
Some("flatten") => true,
Expand Down

0 comments on commit 9d4ba09

Please sign in to comment.