Fix clippy warning in update.rs

This commit is contained in:
notplants 2022-04-14 16:11:20 -04:00
parent bff86a490b
commit 1866e289a6
2 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@ -2584,7 +2584,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216" checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216"
dependencies = [ dependencies = [
"libc", "libc",
"time 0.3.7", "time 0.1.44",
] ]
[[package]] [[package]]

View File

@ -48,7 +48,8 @@ pub fn update_microservices() -> Result<(), PeachConfigError> {
// filter out peach-config from list of services // filter out peach-config from list of services
let services_to_update: Vec<&str> = SERVICES let services_to_update: Vec<&str> = SERVICES
.to_vec() .to_vec()
.into_iter() .iter()
.copied()
.filter(|&x| x != "peach-config") .filter(|&x| x != "peach-config")
.collect(); .collect();