mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
fix: sync-ls warnings (#1711)
This commit is contained in:
parent
f4a6d2b271
commit
48976dd1dd
2 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,8 @@
|
|||
//! Message from and to language servers and clients.
|
||||
|
||||
use std::{
|
||||
fmt,
|
||||
io::{self, BufRead, Write},
|
||||
};
|
||||
use std::fmt;
|
||||
#[cfg(any(feature = "lsp", feature = "dap"))]
|
||||
use std::io::{self, BufRead, Write};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
@ -261,7 +260,9 @@ pub(crate) fn invalid_data(
|
|||
io::Error::new(io::ErrorKind::InvalidData, error)
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "lsp", feature = "dap"))]
|
||||
macro_rules! invalid_data_fmt {
|
||||
($($tt:tt)*) => ($crate::invalid_data(format!($($tt)*)))
|
||||
}
|
||||
#[cfg(any(feature = "lsp", feature = "dap"))]
|
||||
pub(crate) use invalid_data_fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue