Skip to content

Commit

Permalink
fixed: 先过滤最后再 cloned
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifengle committed Oct 17, 2022
1 parent e74380c commit c97803c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rss2pan"
version = "0.1.2"
version = "0.1.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion src/yiyiwu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ impl Yiyiwu {
for chunk in item_list.chunks(200) {
let tasks: Vec<MagnetItem> = chunk
.iter()
.cloned()
.filter(|item| !service.has_item(&item.magnet))
.cloned()
.collect();
// 测试用的开关
if std::env::var("RSS2PAN_LOG").is_ok() {
Expand Down

0 comments on commit c97803c

Please sign in to comment.