File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " prometheus-client-derive-encode"
3
- version = " 0.4.1 "
3
+ version = " 0.4.2 "
4
4
authors = [
" Max Inden <[email protected] >" ]
5
5
edition = " 2021"
6
6
description = " Auxiliary crate to derive Encode trait from prometheus-client."
@@ -14,7 +14,7 @@ documentation = "https://docs.rs/prometheus-client-derive-text-encode"
14
14
[dependencies ]
15
15
proc-macro2 = " 1"
16
16
quote = " 1"
17
- syn = " 1 "
17
+ syn = " 2 "
18
18
19
19
[dev-dependencies ]
20
20
prometheus-client = { path = " ../" , features = [" protobuf" ] }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub fn derive_encode_label_set(input: TokenStream) -> TokenStream {
25
25
let attribute = f
26
26
. attrs
27
27
. iter ( )
28
- . find ( |a| a. path . is_ident ( "prometheus" ) )
28
+ . find ( |a| a. path ( ) . is_ident ( "prometheus" ) )
29
29
. map ( |a| a. parse_args :: < syn:: Ident > ( ) . unwrap ( ) . to_string ( ) ) ;
30
30
let flatten = match attribute. as_deref ( ) {
31
31
Some ( "flatten" ) => true ,
You can’t perform that action at this time.
0 commit comments