Skip to content

Commit abe0ead

Browse files
Use #[derive(Debug)]
1 parent 5a9ca31 commit abe0ead

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/proc_macro_api/src/process.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use std::{
44
convert::{TryFrom, TryInto},
55
ffi::{OsStr, OsString},
6-
fmt,
76
io::{self, BufRead, BufReader, Write},
87
path::{Path, PathBuf},
98
process::{Child, ChildStdin, ChildStdout, Command, Stdio},
@@ -17,17 +16,12 @@ use crate::{
1716
rpc::{ListMacrosResult, ListMacrosTask, ProcMacroKind},
1817
};
1918

19+
#[derive(Debug)]
2020
pub(crate) struct ProcMacroProcessSrv {
2121
process: Mutex<Process>,
2222
stdio: Mutex<(ChildStdin, BufReader<ChildStdout>)>,
2323
}
2424

25-
impl fmt::Debug for ProcMacroProcessSrv {
26-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
27-
f.debug_struct("ProcMacroProcessSrv").field("process", &self.process).finish()
28-
}
29-
}
30-
3125
impl ProcMacroProcessSrv {
3226
pub(crate) fn run(
3327
process_path: PathBuf,

0 commit comments

Comments
 (0)