@@ -191,10 +191,10 @@ impl LSPSMessage {
191
191
/// The given `request_id_to_method` associates request ids with method names, as response objects
192
192
/// don't carry the latter.
193
193
pub fn from_str_with_id_map (
194
- json_str : & str , request_id_to_method : & mut HashMap < String , String > ,
194
+ json_str : & str , request_id_to_method_map : & mut HashMap < String , String > ,
195
195
) -> Result < Self , serde_json:: Error > {
196
196
let deserializer = & mut serde_json:: Deserializer :: from_str ( json_str) ;
197
- let visitor = LSPSMessageVisitor { request_id_to_method } ;
197
+ let visitor = LSPSMessageVisitor { request_id_to_method_map } ;
198
198
deserializer. deserialize_any ( visitor)
199
199
}
200
200
@@ -336,7 +336,7 @@ impl Serialize for LSPSMessage {
336
336
}
337
337
338
338
struct LSPSMessageVisitor < ' a > {
339
- request_id_to_method : & ' a mut HashMap < String , String > ,
339
+ request_id_to_method_map : & ' a mut HashMap < String , String > ,
340
340
}
341
341
342
342
impl < ' de , ' a > Visitor < ' de > for LSPSMessageVisitor < ' a > {
@@ -390,7 +390,7 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
390
390
match method {
391
391
Some ( method) => match method {
392
392
LSPS0_LISTPROTOCOLS_METHOD_NAME => {
393
- self . request_id_to_method . insert ( id. clone ( ) , method. to_string ( ) ) ;
393
+ self . request_id_to_method_map . insert ( id. clone ( ) , method. to_string ( ) ) ;
394
394
395
395
Ok ( LSPSMessage :: LSPS0 ( LSPS0Message :: Request (
396
396
RequestId ( id) ,
@@ -445,7 +445,7 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
445
445
method
446
446
) ) ) ,
447
447
} ,
448
- None => match self . request_id_to_method . get ( & id) {
448
+ None => match self . request_id_to_method_map . get ( & id) {
449
449
Some ( method) => match method. as_str ( ) {
450
450
LSPS0_LISTPROTOCOLS_METHOD_NAME => {
451
451
if let Some ( error) = error {
0 commit comments