Skip to content

Commit 33bb394

Browse files
committed
remove secondary __repr__ blocks
1 parent 5e4e7f2 commit 33bb394

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/process.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ impl PyProcess {
7878
fn __str__(&self) -> String {
7979
self.info().__str__()
8080
}
81-
82-
fn __repr__(&self) -> String {
83-
format!("{:?}", self.0.info())
84-
}
8581
}
8682

8783
#[derive(Clone)]
@@ -170,10 +166,6 @@ impl PyProcessInfo {
170166
fn __str__(&self) -> String {
171167
format!("{} ({}) @ {:#04x}", self.name(), self.pid(), self.address())
172168
}
173-
174-
fn __repr__(&self) -> String {
175-
format!("{:?}", self.0)
176-
}
177169
}
178170

179171
impl From<ProcessInfo> for PyProcessInfo {
@@ -271,10 +263,6 @@ impl PyModuleInfo {
271263
fn __str__(&self) -> String {
272264
format!("{} @ {:#04x}", self.name(), self.base())
273265
}
274-
275-
fn __repr__(&self) -> String {
276-
format!("{:?}", self.0)
277-
}
278266
}
279267

280268
impl From<ModuleInfo> for PyModuleInfo {

0 commit comments

Comments
 (0)