Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Update rust toolchain #293

Merged
merged 4 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2021-09-01
toolchain: nightly-2021-04-22
override: true
target: wasm32-unknown-unknown

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Build bridger
env:
RUST_TOOLCHAIN: nightly-2021-09-01
RUST_TOOLCHAIN: nightly-2021-04-22
run: |
.maintain/setup-bridger.sh

Expand Down
2 changes: 1 addition & 1 deletion .maintain/docker/Dockerfile.publish-docker-image
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

FROM rust:1 as builder

ARG RUST_TOOLCHAIN=nightly-2021-09-01
ARG RUST_TOOLCHAIN=nightly-2021-04-22
ENV CARGO_TERM_COLOR=always

RUN rustup update \
Expand Down
4 changes: 2 additions & 2 deletions task/task-darwinia-ethereum/src/migrate/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn migrate(state: &BridgeState) -> anyhow::Result<()> {
}

fn migrate_tracker_ethereum(microkv: &NamespaceMicroKV) -> anyhow::Result<()> {
for key in [
for key in &[
"scan.ethereum.running",
"scan.ethereum.finish",
"scan.ethereum.current",
Expand Down Expand Up @@ -43,7 +43,7 @@ fn migrate_tracker_darwinia(microkv: &NamespaceMicroKV) -> anyhow::Result<()> {
microkv.put("scan.darwinia.current", &value.as_u64().unwrap_or(0))?;
}
}
for key in [
for key in &[
"scan.darwinia.finish",
"scan.darwinia.next",
"scan.darwinia.skipped",
Expand Down
4 changes: 2 additions & 2 deletions task/task-pangolin-ropsten/src/migrate/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn migrate(state: &BridgeState) -> anyhow::Result<()> {
}

fn migrate_tracker_ropsten(microkv: &NamespaceMicroKV) -> anyhow::Result<()> {
for key in [
for key in &[
"scan.ropsten.running",
"scan.ropsten.finish",
"scan.ropsten.current",
Expand Down Expand Up @@ -43,7 +43,7 @@ fn migrate_tracker_pangolin(microkv: &NamespaceMicroKV) -> anyhow::Result<()> {
microkv.put("scan.pangolin.current", &value.as_u64().unwrap_or(0))?;
}
}
for key in [
for key in &[
"scan.pangolin.finish",
"scan.pangolin.next",
"scan.pangolin.skipped",
Expand Down