diff options
author | Gurwinder Singh <vargwin@gmail.com> | 2020-01-04 15:50:52 +0530 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-04 05:20:52 -0500 |
commit | 9f6bab6010abb26814d6d7a163db24fa5965d09c (patch) | |
tree | d680722aeffb6535de0f49689a4dbf8763836b2c /cli/worker.rs | |
parent | 70b1be6ff459ebd2bf57b7788ab7d66c1f375b29 (diff) |
Use async at places, use &self instead of self: &Self (#3594)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index df5e663b3..31f90c1da 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -157,7 +157,7 @@ impl Worker { /// /// This method blocks current thread. pub fn post_message( - self: &Self, + &self, buf: Buf, ) -> impl Future<Output = Result<(), ErrBox>> { let channels = self.external_channels.lock().unwrap(); @@ -170,7 +170,7 @@ impl Worker { } /// Get message from worker as a host. - pub fn get_message(self: &Self) -> WorkerReceiver { + pub fn get_message(&self) -> WorkerReceiver { WorkerReceiver { channels: self.external_channels.clone(), } |