-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few nits.
Thank you for caring about this stuff. Much appreciated.
#[macro_use] | ||
extern crate trace_time; | ||
// needed to make the procedural macro `MallocSizeOf` to work | ||
#[macro_use] extern crate parity_util_mem as malloc_size_of; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cheme I've run into this as well in other crates. Are we using it wrong or is this a "known issue"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the crate need proc-macro = true
in its manifest to work with rust 2018?
snapshot::TestSnapshotService, | ||
}; | ||
|
||
use super::{*, super::{*, tests::*}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely to see these go.
We had a PR open that did exactly this and was really close to being finished. Maybe now's the time to pick that up and push it over the finish line? |
Can you elaborate on this? Does |
We have two different types for
Right, yeah would be cool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, feel free to merge if you want to address the bullet points in a separate PR.
Address #11061 (review)
Will not be addressed in this PR:
I think there are additional cleanups to do in the crate such:
enum_from_primitive
with a proc macro forSyncPacket
TransactionStats
,LightSync
and similar, because several things are named the same thing which is confusing at least to mesync
into different crates for light and full sync