Skip to content

Commit fd80ecb

Browse files
1 parent 2767198 commit fd80ecb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/utils/ui.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,10 @@ pub fn capitalize_string(s: &str) -> String {
4545
}
4646

4747
/// Like ``io::copy`` but advances a progress bar set to bytes.
48-
pub fn copy_with_progress<R: ?Sized, W: ?Sized>(
49-
pb: &ProgressBar,
50-
reader: &mut R,
51-
writer: &mut W,
52-
) -> io::Result<u64>
48+
pub fn copy_with_progress<R, W>(pb: &ProgressBar, reader: &mut R, writer: &mut W) -> io::Result<u64>
5349
where
54-
R: Read,
55-
W: Write,
50+
R: Read + ?Sized,
51+
W: Write + ?Sized,
5652
{
5753
let mut buf = [0; 16384];
5854
let mut written = 0;

0 commit comments

Comments
 (0)