File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use crate::encoding::DescriptorEncoder;
23
23
///
24
24
/// impl Collector for MyCollector {
25
25
/// fn encode(&self, mut encoder: DescriptorEncoder) -> Result<(), std::fmt::Error> {
26
- /// let counter = ConstCounter::new(42 );
26
+ /// let counter = ConstCounter::new(42u64 );
27
27
/// let metric_encoder = encoder.encode_descriptor(
28
28
/// "my_counter",
29
29
/// "some help",
Original file line number Diff line number Diff line change @@ -1014,7 +1014,7 @@ mod tests {
1014
1014
& self ,
1015
1015
mut encoder : crate :: encoding:: DescriptorEncoder ,
1016
1016
) -> Result < ( ) , std:: fmt:: Error > {
1017
- let counter = crate :: metrics:: counter:: ConstCounter :: new ( 42 ) ;
1017
+ let counter = crate :: metrics:: counter:: ConstCounter :: new ( 42u64 ) ;
1018
1018
let metric_encoder = encoder. encode_descriptor (
1019
1019
& self . name ,
1020
1020
"some help" ,
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ impl Registry {
185
185
///
186
186
/// impl Collector for MyCollector {
187
187
/// fn encode(&self, mut encoder: DescriptorEncoder) -> Result<(), std::fmt::Error> {
188
- /// let counter = ConstCounter::new(42 );
188
+ /// let counter = ConstCounter::new(42u64 );
189
189
/// let metric_encoder = encoder.encode_descriptor(
190
190
/// "my_counter",
191
191
/// "some help",
You can’t perform that action at this time.
0 commit comments