Skip to content

Commit

Permalink
fix merge conflicts: what is going on?
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjohnbell committed Nov 20, 2023
2 parents 5f02a1b + 942873f commit 4dbacf9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 67 deletions.
17 changes: 0 additions & 17 deletions .github/actions/build-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ inputs:
require: true
default:

rust-toolchain:
description: "Rust toolchain to install"
required: false
default: 1.74.0

rust-components:
description: "Rust components to install"
required: false
default: rust-src, clippy

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -47,12 +37,5 @@ runs:
svm install 0.8.16
svm use 0.8.16
- name: Install Rust
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0
with:
toolchain: ${{ inputs.rust-toolchain }}
components: ${{ inputs.rust-components }}
targets: wasm32-unknown-unknown

# - name: Cache Rust
# uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43
5 changes: 0 additions & 5 deletions .github/workflows/daily-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
path: ~/.cargo/advisory-db
key: rust-advisory-db

- name: Install cargo
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0
with:
toolchain: 1.74.0

- name: Install cargo deny
run: cargo install --locked cargo-deny

Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ jobs:
uses: ./.github/actions/build-dependencies
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
rust-toolchain: ${{ steps.nightly.outputs.version }}
rust-components: rust-src, clippy

- name: Install nightly rust
run: rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -t wasm32-unknown-unknown -c clippy

- name: Run Clippy
run: cargo clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module
run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module

deny:
runs-on: ubuntu-latest
Expand All @@ -38,11 +39,6 @@ jobs:
path: ~/.cargo/advisory-db
key: rust-advisory-db

- name: Install cargo
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0
with:
toolchain: 1.74.0

- name: Install cargo deny
run: cargo install --locked cargo-deny

Expand All @@ -58,11 +54,8 @@ jobs:
id: nightly
run: echo "version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT

- name: Install rustfmt
uses: dtolnay/rust-toolchain@5cb429dd810e16ff67df78472fa81cf760f4d1c0
with:
toolchain: ${{ steps.nightly.outputs.version }}
components: rustfmt
- name: Install nightly rust
run: rustup toolchain install ${{ steps.nightly.outputs.version }} --profile minimal -c rustfmt

- name: Run rustfmt
run: cargo +${{ steps.nightly.outputs.version }} fmt -- --check
Expand Down
62 changes: 31 additions & 31 deletions 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 coordinator/src/substrate/db.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::{OnceLock, MutexGuard, Mutex};

use scale::Encode;
use scale::{Encode, Decode};

pub use serai_db::*;

Expand Down

0 comments on commit 4dbacf9

Please sign in to comment.