Derive Clone for PairSigner (#184)

* Derive `Clone` for `PairSigner`

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Specify the date of nightly toolchain to fix CI

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2020-10-20 17:57:27 +08:00
committed by GitHub
parent fc2da6b9c7
commit 7655caac0f
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -16,14 +16,14 @@ jobs:
- name: setup
run: |
rustup install nightly --profile default
rustup +nightly target add wasm32-unknown-unknown
rustup install nightly-2020-10-01 --profile default
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01
- name: fmt
run: cargo +nightly fmt --all -- --check
run: cargo +nightly-2020-10-01 fmt --all -- --check
- name: build
run: cargo build --workspace --verbose
run: cargo +nightly-2020-10-01 build --workspace --verbose
- name: test
run: cargo test --workspace --verbose -- --test-threads=1
run: cargo +nightly-2020-10-01 test --workspace --verbose -- --test-threads=1
+1 -1
View File
@@ -54,7 +54,7 @@ pub trait Signer<T: Runtime> {
}
/// Extrinsic signer using a private key.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct PairSigner<T: Runtime, P: Pair> {
account_id: T::AccountId,
nonce: Option<T::Index>,