From 040e022c2f970f49838484fe8c7f761d1c442f8b Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Tue, 16 Jul 2024 22:55:15 +0200 Subject: [PATCH] fixup --- packages/metainfo/src/metainfo.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/metainfo/src/metainfo.rs b/packages/metainfo/src/metainfo.rs index fe6d63829..0fd00d167 100644 --- a/packages/metainfo/src/metainfo.rs +++ b/packages/metainfo/src/metainfo.rs @@ -500,7 +500,7 @@ mod tests { .map(|&p| info_dict_access.insert(parse::PRIVATE_KEY.into(), ben_int!(p))); directory - .map(|d| { + .inspect(|&d| { // We intended to build a multi file torrent since we provided a directory info_dict_access.insert(parse::NAME_KEY.into(), ben_bytes!(d)); @@ -539,8 +539,6 @@ mod tests { info_dict_access.insert(parse::FILES_KEY.into(), bencode_files); }; - - d }) .or_else(|| { // We intended to build a single file torrent if a directory was not specified