Skip to content

Commit 7fe1417

Browse files
authored
Merge pull request DMDcoin#227 from DMDcoin/0.11
beta update for 0.11.1 changes
2 parents 1047b90 + 9e32f16 commit 7fe1417

File tree

47 files changed

+95
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+95
-179
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,12 @@ jobs:
2121
toolchain: 1.85
2222
profile: minimal
2323
override: true
24-
- name: Run cargo check 1/3
24+
- name: Run cargo check
2525
uses: actions-rs/cargo@v1
2626
with:
2727
command: check
28-
args: --locked --no-default-features --verbose
29-
- name: Run cargo check 2/3
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: check
33-
args: --locked --manifest-path crates/runtime/io/Cargo.toml --no-default-features --verbose
34-
- name: Run cargo check 3/3
28+
args: --locked --all --benches --verbose --tests
29+
- name: Run cargo check mio io
3530
uses: actions-rs/cargo@v1
3631
with:
3732
command: check
@@ -41,10 +36,7 @@ jobs:
4136
with:
4237
command: check
4338
args: --locked -p evmbin --verbose
44-
- name: Run cargo check benches
45-
uses: actions-rs/cargo@v1
46-
with:
47-
command: check
48-
args: --locked --all --benches --verbose
4939
- name: Run validate chainspecs
5040
run: ./scripts/actions/validate-chainspecs.sh
41+
args: --locked --all --benches --verbose --tests
42+

bin/ethstore/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
extern crate dir;
1818
extern crate docopt;
1919
extern crate ethstore;
20-
use num_cpus;
2120
extern crate panic_hook;
2221
extern crate parking_lot;
2322
extern crate rustc_hex;

bin/evmbin/src/display/std_json.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,18 @@ use ethereum_types::{BigEndianHash, H256, U256};
2626

2727
pub trait Writer: io::Write + Send + Sized {
2828
fn clone(&self) -> Self;
29-
fn default() -> Self;
3029
}
3130

3231
impl Writer for io::Stdout {
3332
fn clone(&self) -> Self {
3433
io::stdout()
3534
}
36-
37-
fn default() -> Self {
38-
io::stdout()
39-
}
4035
}
4136

4237
impl Writer for io::Stderr {
4338
fn clone(&self) -> Self {
4439
io::stderr()
4540
}
46-
47-
fn default() -> Self {
48-
io::stderr()
49-
}
5041
}
5142

5243
/// JSON formatting informant.
@@ -299,9 +290,6 @@ pub mod tests {
299290
fn clone(&self) -> Self {
300291
Clone::clone(self)
301292
}
302-
fn default() -> Self {
303-
Default::default()
304-
}
305293
}
306294

307295
impl io::Write for TestWriter {

bin/evmbin/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ fn run_call<T: Informant>(args: Args, informant: T) {
336336

337337
#[derive(Debug, Deserialize)]
338338
struct Args {
339-
cmd_stats: bool,
340339
cmd_state_test: bool,
341340
cmd_stats_jsontests_vm: bool,
342341
arg_file: Option<PathBuf>,

bin/oe/rpc_apis.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ pub struct FullDependencies {
214214
pub client: Arc<Client>,
215215
pub snapshot: Arc<dyn SnapshotService>,
216216
pub sync: Arc<dyn SyncProvider>,
217+
#[allow(dead_code)]
217218
pub net: Arc<dyn ManageNetwork>,
218219
pub accounts: Arc<AccountProvider>,
219220
pub miner: Arc<Miner>,

bin/oe/secretstore.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ pub struct Configuration {
8787
}
8888

8989
/// Secret store dependencies
90+
/// TODO: The compiler complains that none of the struct members are ever used
91+
/// Remove this struct and all its dependencies
92+
#[allow(dead_code)]
9093
pub struct Dependencies<'a> {
9194
/// Blockchain client.
9295
pub client: Arc<Client>,

bin/oe/signer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use ethcore_logger::Config as LogConfig;
2626
pub const CODES_FILENAME: &str = "authcodes";
2727

2828
pub struct NewToken {
29-
pub token: String,
3029
pub message: String,
3130
}
3231

@@ -69,7 +68,6 @@ pub fn generate_token_and_url(
6968
};
7069

7170
Ok(NewToken {
72-
token: code.clone(),
7371
message: format!(
7472
r#"
7573
Generated token:

crates/concensus/ethash/src/shared.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ pub type NodeBytes = [u8; NODE_BYTES];
7070
pub type NodeWords = [u32; NODE_WORDS];
7171
pub type NodeDwords = [u64; NODE_DWORDS];
7272

73-
unsafe trait AsBigAsUsize: Sized {
74-
const _DUMMY: [(); 0];
75-
}
76-
7773
macro_rules! static_assert_size_eq {
7874
(@inner $a:ty, $b:ty, $($rest:ty),*) => {
7975
fn first() {
@@ -85,11 +81,11 @@ macro_rules! static_assert_size_eq {
8581
}
8682
};
8783
(@inner $a:ty, $b:ty) => {
88-
unsafe impl AsBigAsUsize for $a {
89-
#[allow(dead_code)]
90-
const _DUMMY: [(); 0] =
91-
[(); (::std::mem::size_of::<$a>() - ::std::mem::size_of::<$b>())];
92-
}
84+
// Use const assertion instead of trait implementation
85+
const _: () = assert!(
86+
::std::mem::size_of::<$a>() == ::std::mem::size_of::<$b>(),
87+
concat!("Size mismatch between ", stringify!($a), " and ", stringify!($b))
88+
);
9389
};
9490
($($rest:ty),*) => {
9591
static_assert_size_eq!(size_eq: $($rest),*);

crates/db/memory-db/benches/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn instantiation(b: &mut Criterion) {
4444
fn compare_to_null_embedded_in_struct(b: &mut Criterion) {
4545
struct X {
4646
a_hash: <KeccakHasher as Hasher>::Out,
47-
};
47+
}
4848
let x = X {
4949
a_hash: KeccakHasher::hash(&[0u8][..]),
5050
};

crates/ethcore/blockchain/src/blockchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ impl BlockChain {
15731573
}
15741574

15751575
/// Iterator that lists `first` and then all of `first`'s ancestors, by extended header.
1576-
pub fn ancestry_with_metadata_iter<'a>(&'a self, first: H256) -> AncestryWithMetadataIter {
1576+
pub fn ancestry_with_metadata_iter<'a>(&'a self, first: H256) -> AncestryWithMetadataIter<'a> {
15771577
AncestryWithMetadataIter {
15781578
current: if self.is_known(&first) {
15791579
first

0 commit comments

Comments
 (0)