aquatic_http: use new trait Ip for ip generic parameters

This commit is contained in:
Joakim Frostegård 2020-07-08 14:22:30 +02:00
parent 2386dd0e8b
commit 8ddccb20aa
3 changed files with 25 additions and 19 deletions

View file

@ -12,7 +12,7 @@ pub fn clean_torrents(state: &State){
}
fn clean_torrent_map<I: Eq + ::std::hash::Hash>(
fn clean_torrent_map<I: Ip>(
torrent_map: &mut TorrentMap<I>,
){
let now = Instant::now();