@@ -130,7 +130,8 @@ impl TryFrom<metastore::DeleteQuery> for search::SearchRequest {
130130pub struct MutMetadataMap < ' a > ( & ' a mut tonic:: metadata:: MetadataMap ) ;
131131
132132impl Injector for MutMetadataMap < ' _ > {
133- /// Sets a key-value pair in the [`MetadataMap`]. No-op if the key or value is invalid.
133+ /// Sets a key-value pair in the [`tonic::metadata::MetadataMap`]. No-op if the key or value
134+ /// is invalid.
134135 fn set ( & mut self , key : & str , value : String ) {
135136 if let Ok ( metadata_key) = tonic:: metadata:: MetadataKey :: from_bytes ( key. as_bytes ( ) )
136137 && let Ok ( metadata_value) = tonic:: metadata:: MetadataValue :: try_from ( & value)
@@ -141,13 +142,13 @@ impl Injector for MutMetadataMap<'_> {
141142}
142143
143144impl Extractor for MutMetadataMap < ' _ > {
144- /// Gets a value for a key from the MetadataMap. If the value can't be converted to &str,
145+ /// Gets a value for a key from the ` MetadataMap`. If the value can't be converted to &str,
145146 /// returns None.
146147 fn get ( & self , key : & str ) -> Option < & str > {
147148 self . 0 . get ( key) . and_then ( |metadata| metadata. to_str ( ) . ok ( ) )
148149 }
149150
150- /// Collect all the keys from the MetadataMap.
151+ /// Collect all the keys from the ` MetadataMap` .
151152 fn keys ( & self ) -> Vec < & str > {
152153 self . 0
153154 . keys ( )
@@ -181,13 +182,13 @@ impl Interceptor for SpanContextInterceptor {
181182struct MetadataMap < ' a > ( & ' a tonic:: metadata:: MetadataMap ) ;
182183
183184impl Extractor for MetadataMap < ' _ > {
184- /// Gets a value for a key from the MetadataMap. If the value can't be converted to &str,
185+ /// Gets a value for a key from the ` MetadataMap`. If the value can't be converted to &str,
185186 /// returns None.
186187 fn get ( & self , key : & str ) -> Option < & str > {
187188 self . 0 . get ( key) . and_then ( |metadata| metadata. to_str ( ) . ok ( ) )
188189 }
189190
190- /// Collect all the keys from the MetadataMap.
191+ /// Collect all the keys from the ` MetadataMap` .
191192 fn keys ( & self ) -> Vec < & str > {
192193 self . 0
193194 . keys ( )
0 commit comments