Skip to content

Commit 94db1f1

Browse files
committed
improv: Use .exit() instead of .send_command() in Drop
1 parent 774611b commit 94db1f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/daemon/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::{
1010

1111
use super::{
1212
err_str,
13+
Daemon,
1314
DaemonClientTrait,
1415
DaemonCommand,
1516
DaemonResponse,
@@ -43,6 +44,6 @@ impl<R: std::io::Read, W: std::io::Write> DaemonClientTrait for DaemonClient<R,
4344

4445
impl<R: Read, W: Write> Drop for DaemonClient<R, W> {
4546
fn drop(&mut self) {
46-
let _ = self.send_command(DaemonCommand::exit{});
47+
let _ = self.exit();
4748
}
4849
}

0 commit comments

Comments
 (0)