Skip to content

Commit

Permalink
ref: Fix clippy multiple_bound_locations lint
Browse files Browse the repository at this point in the history
  • Loading branch information
szokeasaurusrex committed May 2, 2024
1 parent 2767198 commit fd80ecb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/utils/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ pub fn capitalize_string(s: &str) -> String {
}

/// Like ``io::copy`` but advances a progress bar set to bytes.
pub fn copy_with_progress<R: ?Sized, W: ?Sized>(
pb: &ProgressBar,
reader: &mut R,
writer: &mut W,
) -> io::Result<u64>
pub fn copy_with_progress<R, W>(pb: &ProgressBar, reader: &mut R, writer: &mut W) -> io::Result<u64>
where
R: Read,
W: Write,
R: Read + ?Sized,
W: Write + ?Sized,
{
let mut buf = [0; 16384];
let mut written = 0;
Expand Down

0 comments on commit fd80ecb

Please sign in to comment.