@@ -291,7 +291,7 @@ where
291291 if !is_valid(¶ms.order, &self.config.supported_options) {
292292 let response = LSPS1Response::CreateOrderError(LSPSResponseError {
293293 code: LSPS1_CREATE_ORDER_REQUEST_ORDER_MISMATCH_ERROR_CODE,
294- message: format!( "Order does not match options supported by LSP server"),
294+ message: "Order does not match options supported by LSP server".to_string( ),
295295 data: Some(format!("Supported options are {:?}", &self.config.supported_options)),
296296 });
297297 let msg = LSPS1Message::Response(request_id, response).into();
@@ -478,7 +478,8 @@ where
478478 let order = peer_state_lock.get_order(¶ms.order_id).map_err(|e| {
479479 let response = LSPS1Response::GetOrderError(LSPSResponseError {
480480 code: LSPS1_GET_ORDER_REQUEST_ORDER_NOT_FOUND_ERROR_CODE,
481- message: format!("Order with the requested order_id has not been found."),
481+ message: "Order with the requested order_id has not been found."
482+ .to_string(),
482483 data: None,
483484 });
484485 let msg = LSPS1Message::Response(request_id.clone(), response).into();
@@ -503,7 +504,7 @@ where
503504 None => {
504505 let response = LSPS1Response::GetOrderError(LSPSResponseError {
505506 code: LSPS1_GET_ORDER_REQUEST_ORDER_NOT_FOUND_ERROR_CODE,
506- message: format!( "Order with the requested order_id has not been found."),
507+ message: "Order with the requested order_id has not been found.".to_string( ),
507508 data: None,
508509 });
509510 let msg = LSPS1Message::Response(request_id, response).into();
0 commit comments