Remove some trait bounds

This commit is contained in:
Igor Katson 2021-07-04 18:01:58 +01:00
parent 44c760bcc2
commit 4f07b0f785
3 changed files with 15 additions and 19 deletions

View file

@ -91,7 +91,7 @@ struct Opts {
single_thread_runtime: bool,
}
fn compute_only_files<ByteBuf: Clone + std::ops::Deref<Target = [u8]> + AsRef<[u8]>>(
fn compute_only_files<ByteBuf: AsRef<[u8]>>(
torrent: &TorrentMetaV1Info<ByteBuf>,
filename_re: &str,
) -> anyhow::Result<Vec<usize>> {