mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
cargo upgrade
This commit is contained in:
parent
95d5091a09
commit
23712aea06
20 changed files with 190 additions and 89 deletions
|
|
@ -7,7 +7,7 @@ repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/lsp-ser
|
|||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4.26"
|
||||
log = "0.4.27"
|
||||
serde_json = "1.0.140"
|
||||
serde = { version = "1.0.219" }
|
||||
serde_derive = { version = "1.0.219" }
|
||||
|
|
@ -15,7 +15,7 @@ crossbeam-channel.workspace = true
|
|||
|
||||
[dev-dependencies]
|
||||
lsp-types = "=0.95"
|
||||
ctrlc = "3.4.5"
|
||||
ctrlc = "3.4.7"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -283,12 +283,12 @@ fn read_msg_text(inp: &mut dyn BufRead) -> io::Result<Option<String>> {
|
|||
buf.resize(size, 0);
|
||||
inp.read_exact(&mut buf)?;
|
||||
let buf = String::from_utf8(buf).map_err(invalid_data)?;
|
||||
log::debug!("< {}", buf);
|
||||
log::debug!("< {buf}");
|
||||
Ok(Some(buf))
|
||||
}
|
||||
|
||||
fn write_msg_text(out: &mut dyn Write, msg: &str) -> io::Result<()> {
|
||||
log::debug!("> {}", msg);
|
||||
log::debug!("> {msg}");
|
||||
write!(out, "Content-Length: {}\r\n\r\n", msg.len())?;
|
||||
out.write_all(msg.as_bytes())?;
|
||||
out.flush()?;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ pub(crate) fn stdio_transport() -> (Sender<Message>, Receiver<Message>, IoThread
|
|||
while let Some(msg) = Message::read(&mut stdin)? {
|
||||
let is_exit = matches!(&msg, Message::Notification(n) if n.is_exit());
|
||||
|
||||
debug!("sending message {:#?}", msg);
|
||||
debug!("sending message {msg:#?}");
|
||||
if let Err(e) = reader_sender.send(msg) {
|
||||
return Err(io::Error::other(e));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue