aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-12 18:46:21 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-15 22:14:34 +0530
commitf2c43ac577d9d2a93695564cb3185264e3492a68 (patch)
tree47d19cb1e4ada87e1b9b8684f7f6e2637146dadf /src/tests
parentSwitch to multiprocess model: Not looking good (diff)
downloadsl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.tar.gz
sl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.tar.xz
sl0ppij-f2c43ac577d9d2a93695564cb3185264e3492a68.zip
Fix memory overflow error and add panic hook for server
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fakes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs
index 1697e65f..2612848d 100644
--- a/src/tests/fakes.rs
+++ b/src/tests/fakes.rs
@@ -153,7 +153,7 @@ impl ClientOsApi for FakeInputOutput {
.unwrap()
.push(IoEvent::IntoRawMode(pid));
}
- fn unset_raw_mode(&mut self, pid: RawFd) {
+ fn unset_raw_mode(&self, pid: RawFd) {
self.io_events
.lock()
.unwrap()
@@ -217,7 +217,7 @@ impl ClientOsApi for FakeInputOutput {
cb();
}
}
- fn connect_to_server(&self, path: &std::path::Path) {}
+ fn connect_to_server(&self, _path: &std::path::Path) {}
}
impl ServerOsApi for FakeInputOutput {