From 213a33bb43fc44145c295325971668a0fa67676c Mon Sep 17 00:00:00 2001
From: kivimango <balazsviktor23@gmail.com>
Date: Wed, 16 Aug 2023 12:14:14 +0200
Subject: [PATCH] Use shorthand init

---
 src/progress_bar.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/progress_bar.rs b/src/progress_bar.rs
index c02b939d3..597fb9552 100644
--- a/src/progress_bar.rs
+++ b/src/progress_bar.rs
@@ -10,8 +10,8 @@ pub struct ProgressBarRead<'p, 'r, P: Write + 'p, R: Read + 'r> {
 impl<'p, 'r, P: Write, R: Read> ProgressBarRead<'p, 'r, P, R> {
     pub fn new(pb: &'p mut ProgressBar<P>, r: &'r mut R) -> ProgressBarRead<'p, 'r, P, R> {
         ProgressBarRead {
-            pb: pb,
-            r: r
+            pb,
+            r
         }
     }
 }
@@ -32,8 +32,8 @@ pub struct ProgressBarWrite<'p, 'w, P: Write + 'p, W: Write + 'w> {
 impl<'p, 'w, P: Write, W: Write> ProgressBarWrite<'p, 'w, P, W> {
     pub fn new(pb: &'p mut ProgressBar<P>, w: &'w mut W) -> ProgressBarWrite<'p, 'w, P, W> {
         ProgressBarWrite {
-            pb: pb,
-            w: w
+            pb,
+            w
         }
     }
 }
-- 
GitLab