From 5c63f63e2a1e68429c0e0bedef94a8dc5cb8a7c6 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 May 2023 12:06:46 +0100 Subject: [PATCH] cleanup run function --- src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e72d09a..52ef4ef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,10 +98,7 @@ impl Sway { self.run("get_seats", IPC_GET_SEATS) } - fn run(&mut self, payload: &str, payload_type: u32) -> Result - where - T: DeserializeOwned, - { + fn run(&mut self, payload: &str, payload_type: u32) -> Result { let buffer = I3msg::new(payload, payload_type).construct_packet()?; self.stream.write_all(&buffer.as_slice())?;