Skip to content

Commit 628d757

Browse files
committed
chore: remove unused deps, and fix docs issue
1 parent 6bf9f21 commit 628d757

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

.github/workflows/publish-docs.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,29 @@ jobs:
1818
uses: actions-rs/toolchain@v1
1919
with:
2020
profile: minimal
21-
toolchain: nightly
21+
toolchain: nightly-2022-06-22
2222

2323
- name: Update apt repositories
2424
run: sudo apt update
2525

26+
- name: Cache Cargo
27+
uses: actions/cache@v2
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
~/.cargo/bin
33+
target
34+
target/debug
35+
target/release
36+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
37+
38+
- name: Fetch submodules
39+
run: |
40+
git submodule update --init --recursive
41+
2642
- name: Build documentation
27-
run: cargo doc --no-deps
43+
run: cargo doc --release --no-deps
2844
- name: Publish documentation
2945
run: |
3046
cd target/doc

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2022-02-01"
2+
channel = "nightly-2022-06-22"
33
components = ["rustfmt", "clippy"]
44
targets = ["wasm32-unknown-unknown"]

standalone/runtime/src/lib.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ pub use sp_runtime::BuildStorage;
6262

6363
use pallet_election_provider_multi_phase::SolutionAccuracyOf;
6464

65-
#[cfg(feature = "std")]
66-
use serde::{Deserialize, Serialize};
67-
6865
use codec::{Decode, Encode, MaxEncodedLen};
6966
use frame_support::{
7067
construct_runtime,
@@ -93,7 +90,6 @@ use webb_primitives::{
9390
hashing::{ethereum::Keccak256HasherBn254, ArkworksPoseidonHasherBn254},
9491
linkable_tree::LinkableTreeInspector,
9592
signing::SignatureVerifier,
96-
types::ElementTrait,
9793
verifying::ArkworksVerifierBn254,
9894
Amount, ChainId, LeafIndex,
9995
};
@@ -538,7 +534,7 @@ impl pallet_election_provider_multi_phase::MinerConfig for WebbMinerConfig {
538534
type MaxVotesPerVoter = MaxNominations;
539535
type Solution = NposSolution16;
540536

541-
fn solution_weight(v: u32, t: u32, a: u32, d: u32) -> Weight {
537+
fn solution_weight(_v: u32, _t: u32, _a: u32, _d: u32) -> Weight {
542538
0
543539
}
544540
}
@@ -633,11 +629,6 @@ parameter_types! {
633629
pub const MaxProposals: u32 = 100;
634630
}
635631

636-
type EnsureRootOrHalfCouncil = EnsureOneOf<
637-
EnsureRoot<AccountId>,
638-
pallet_collective::EnsureProportionMoreThan<AccountId, CouncilCollective, 1, 2>,
639-
>;
640-
641632
impl pallet_democracy::Config for Runtime {
642633
type BlacklistOrigin = EnsureRoot<AccountId>;
643634
// To cancel a proposal before it has been passed, the technical committee must

0 commit comments

Comments
 (0)