From c35d87676772785da49ffe3a5d50bc17c6e0cb6b Mon Sep 17 00:00:00 2001 From: Vlad Vasiliu Date: Tue, 26 Jul 2022 14:24:08 +0200 Subject: [PATCH] Use EncodeMetric instead of SendSyncEncodeMetric --- src/registry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registry.rs b/src/registry.rs index 15462940..4704ab0f 100644 --- a/src/registry.rs +++ b/src/registry.rs @@ -262,7 +262,7 @@ where impl<'a, M> Collector<'a, M> for Registry where - M: SendSyncEncodeMetric + 'a, + M: EncodeMetric + 'a, { fn collect(&'a self) -> Vec<&'a (Descriptor, M)> { self.iter().collect() @@ -271,7 +271,7 @@ where impl<'a, M, C> Collector<'a, M> for Vec<&'a C> where - M: SendSyncEncodeMetric + 'a, + M: EncodeMetric + 'a, C: Collector<'a, M>, { fn collect(&'a self) -> Vec<&'a (Descriptor, M)> {