File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tracing-opentelemetry-instrumentation-sdk/src/http Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use opentelemetry::propagation::{Extractor, Injector};
3
3
// copy from crate opentelemetry-http (to not be dependants of on 3rd: http, ...)
4
4
pub struct HeaderInjector < ' a > ( pub & ' a mut http:: HeaderMap ) ;
5
5
6
- impl < ' a > Injector for HeaderInjector < ' a > {
6
+ impl Injector for HeaderInjector < ' _ > {
7
7
/// Set a key and value in the `HeaderMap`. Does nothing if the key or value are not valid inputs.
8
8
fn set ( & mut self , key : & str , value : String ) {
9
9
if let Ok ( name) = http:: header:: HeaderName :: from_bytes ( key. as_bytes ( ) ) {
@@ -16,7 +16,7 @@ impl<'a> Injector for HeaderInjector<'a> {
16
16
17
17
pub struct HeaderExtractor < ' a > ( pub & ' a http:: HeaderMap ) ;
18
18
19
- impl < ' a > Extractor for HeaderExtractor < ' a > {
19
+ impl Extractor for HeaderExtractor < ' _ > {
20
20
/// Get a value for a key from the `HeaderMap`. If the value is not valid ASCII, returns None.
21
21
fn get ( & self , key : & str ) -> Option < & str > {
22
22
self . 0 . get ( key) . and_then ( |value| value. to_str ( ) . ok ( ) )
You can’t perform that action at this time.
0 commit comments