From 7e4ad6fd1eef97a05a5160d73d15d244bd0bccdf Mon Sep 17 00:00:00 2001 From: hkohko Date: Sun, 21 Apr 2024 20:22:36 +0700 Subject: [PATCH] fix: rename struct --- src/bulk.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bulk.rs b/src/bulk.rs index ac5f25d..21a8a24 100644 --- a/src/bulk.rs +++ b/src/bulk.rs @@ -26,7 +26,7 @@ impl ParallelBuilder { pub fn build(self) -> Parallel { let (tx, rx) = channel::unbounded(); Parallel { - to_thread: StuffThatNeedsToBeSent { + to_thread: ToThread { vec: self.vec, device_num: self.device_num, quality: self.quality, @@ -64,12 +64,12 @@ impl ParallelBuilder { } #[derive(Debug)] -pub struct StuffThatNeedsToBeSent { +pub struct ToThread { vec: VecDeque<(usize, Vec)>, device_num: u8, quality: u8, } -impl StuffThatNeedsToBeSent { +impl ToThread { /// Compress images in parallel. fn send_to_threads( self, @@ -132,7 +132,7 @@ impl StuffThatNeedsToBeSent { /// Parallelized compression task. #[derive(Debug)] pub struct Parallel { - to_thread: StuffThatNeedsToBeSent, + to_thread: ToThread, transmitter: channel::Sender, error::Error>>, receiver: channel::Receiver, error::Error>>, }