Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit a904fe6

Browse files
fix MSRV errors
1 parent 7bc8055 commit a904fe6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/transport/msgs.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,12 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
218218
)))
219219
}
220220
_ => Err(de::Error::custom(format!(
221-
"Received request with unknown method: {method}"
221+
"Received request with unknown method: {}",
222+
method
222223
))),
223224
}
224225
} else {
225-
Err(de::Error::custom(format!("Received unknown notification: {method}")))
226+
Err(de::Error::custom(format!("Received unknown notification: {}", method)))
226227
}
227228
} else if let Some(id) = id {
228229
if let Some(method) = self.request_id_to_method.get(&id) {
@@ -245,11 +246,12 @@ impl<'de, 'a> Visitor<'de> for LSPSMessageVisitor<'a> {
245246
}
246247
}
247248
_ => Err(de::Error::custom(format!(
248-
"Received response for an unknown request method: {method}"
249+
"Received response for an unknown request method: {}",
250+
method
249251
))),
250252
}
251253
} 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)))
253255
}
254256
} else {
255257
Err(de::Error::custom("Received invalid JSON-RPC object: one of method or id required"))

0 commit comments

Comments
 (0)