Use #[derive(Debug)]

This commit is contained in:
Jonas Schievink 2021-07-08 17:10:35 +02:00
parent 5a9ca311e3
commit abe0ead3a2

View File

@ -3,7 +3,6 @@
use std::{
convert::{TryFrom, TryInto},
ffi::{OsStr, OsString},
fmt,
io::{self, BufRead, BufReader, Write},
path::{Path, PathBuf},
process::{Child, ChildStdin, ChildStdout, Command, Stdio},
@ -17,17 +16,12 @@ use crate::{
rpc::{ListMacrosResult, ListMacrosTask, ProcMacroKind},
};
#[derive(Debug)]
pub(crate) struct ProcMacroProcessSrv {
process: Mutex<Process>,
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 {
pub(crate) fn run(
process_path: PathBuf,