mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Use #[derive(Debug)]
This commit is contained in:
parent
5a9ca311e3
commit
abe0ead3a2
1 changed files with 1 additions and 7 deletions
|
@ -3,7 +3,6 @@
|
||||||
use std::{
|
use std::{
|
||||||
convert::{TryFrom, TryInto},
|
convert::{TryFrom, TryInto},
|
||||||
ffi::{OsStr, OsString},
|
ffi::{OsStr, OsString},
|
||||||
fmt,
|
|
||||||
io::{self, BufRead, BufReader, Write},
|
io::{self, BufRead, BufReader, Write},
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
process::{Child, ChildStdin, ChildStdout, Command, Stdio},
|
process::{Child, ChildStdin, ChildStdout, Command, Stdio},
|
||||||
|
@ -17,17 +16,12 @@ use crate::{
|
||||||
rpc::{ListMacrosResult, ListMacrosTask, ProcMacroKind},
|
rpc::{ListMacrosResult, ListMacrosTask, ProcMacroKind},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub(crate) struct ProcMacroProcessSrv {
|
pub(crate) struct ProcMacroProcessSrv {
|
||||||
process: Mutex<Process>,
|
process: Mutex<Process>,
|
||||||
stdio: Mutex<(ChildStdin, BufReader<ChildStdout>)>,
|
stdio: Mutex<(ChildStdin, BufReader<ChildStdout>)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Debug for ProcMacroProcessSrv {
|
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
||||||
f.debug_struct("ProcMacroProcessSrv").field("process", &self.process).finish()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ProcMacroProcessSrv {
|
impl ProcMacroProcessSrv {
|
||||||
pub(crate) fn run(
|
pub(crate) fn run(
|
||||||
process_path: PathBuf,
|
process_path: PathBuf,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue