Remove some trait bounds
This commit is contained in:
parent
44c760bcc2
commit
4f07b0f785
3 changed files with 15 additions and 19 deletions
|
|
@ -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>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue