This repository was archived by the owner on Jan 6, 2025. It is now read-only.
File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -218,11 +218,12 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
218
218
) ) )
219
219
}
220
220
_ => Err ( de:: Error :: custom ( format ! (
221
- "Received request with unknown method: {method}"
221
+ "Received request with unknown method: {}" ,
222
+ method
222
223
) ) ) ,
223
224
}
224
225
} else {
225
- Err ( de:: Error :: custom ( format ! ( "Received unknown notification: {method}" ) ) )
226
+ Err ( de:: Error :: custom ( format ! ( "Received unknown notification: {}" , method ) ) )
226
227
}
227
228
} else if let Some ( id) = id {
228
229
if let Some ( method) = self . request_id_to_method . get ( & id) {
@@ -245,11 +246,12 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
245
246
}
246
247
}
247
248
_ => Err ( de:: Error :: custom ( format ! (
248
- "Received response for an unknown request method: {method}"
249
+ "Received response for an unknown request method: {}" ,
250
+ method
249
251
) ) ) ,
250
252
}
251
253
} else {
252
- Err ( de:: Error :: custom ( format ! ( "Received response for unknown request id: {id}" ) ) )
254
+ Err ( de:: Error :: custom ( format ! ( "Received response for unknown request id: {}" , id ) ) )
253
255
}
254
256
} else {
255
257
Err ( de:: Error :: custom ( "Received invalid JSON-RPC object: one of method or id required" ) )
You can’t perform that action at this time.
0 commit comments