From fb4b8ebb555ef47c8745700877832a6b7960af51 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Mon, 11 Dec 2023 08:24:23 -0500 Subject: [PATCH] chore: upgrade Rust toolchain to 1.74.0 (#447) --- Dockerfile | 2 +- graph-gateway/src/indexings_blocklist.rs | 4 ++-- rust-toolchain.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ea0d4d05..48f03216d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.73-bullseye AS build +FROM rust:1.74-bullseye AS build ARG GH_USER ARG GH_TOKEN diff --git a/graph-gateway/src/indexings_blocklist.rs b/graph-gateway/src/indexings_blocklist.rs index dc964bba0..2c932ad17 100644 --- a/graph-gateway/src/indexings_blocklist.rs +++ b/graph-gateway/src/indexings_blocklist.rs @@ -101,8 +101,7 @@ pub async fn check_indexer_pois( // a list of matching POI let result = pois_info .iter() - .cloned() - .filter(|info| { + .filter(|&info| { let info_meta = info.meta(); let info_poi = info.poi(); @@ -113,6 +112,7 @@ pub async fn check_indexer_pois( .map(|poi| poi == &info_poi) .unwrap_or_default() }) + .cloned() .collect::>(); (indexer_addr, result) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4c42aeedf..e7f52bc82 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.73.0" +channel = "1.74.0" profile = "default"