Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Remove depenendcy on sc-consensus-slots #4321

Merged
merged 2 commits into from
Dec 9, 2019
Merged

Conversation

tomusdrw
Copy link
Contributor

@tomusdrw tomusdrw commented Dec 6, 2019

This cleans up [dependencies] section of all primitives from client deps 🎉 :)
We are only left with [dev-dependencies] now (I guess that requires moving the tests to separate test crate, cc @ben).

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. M4-core labels Dec 6, 2019
Copy link
Contributor

@Demi-Marie Demi-Marie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gnunicorn gnunicorn added A3-needsresolving and removed A0-please_review Pull request needs code review. labels Dec 9, 2019
Copy link
Contributor

@gnunicorn gnunicorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tomusdrw
Copy link
Contributor Author

tomusdrw commented Dec 9, 2019

I've tried to apply @niklasad1 suggestions, but I think omitting lifetime is not yet supported for traits:

   Compiling sc-executor v2.0.0 (/home/builds/remote-builds/substrate2/client/executor)
error[E0106]: missing lifetime specifier
   --> primitives/consensus/common/src/lib.rs:191:18
    |
191 |     const SLOT_KEY: &[u8];
    |                     ^ expected lifetime parameter

error[E0106]: missing lifetime specifier
   --> primitives/consensus/common/src/lib.rs:199:18
    |
199 |     const SLOT_KEY: &[u8] = b"aura_slot_duration";
    |                     ^ expected lifetime parameter

error: aborting due to 2 previous errors

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. and removed A3-needsresolving labels Dec 9, 2019
@niklasad1
Copy link
Member

niklasad1 commented Dec 9, 2019

I've tried to apply @niklasad1 suggestions, but I think omitting lifetime is not yet supported for traits:

Sorry, my suggestions were wrong I thought that references in associated constants were deduced as static. Clearly not, see rust-lang/rust#51370

@gavofyork gavofyork merged commit 8cb06da into master Dec 9, 2019
@gavofyork gavofyork deleted the td-client-primitives-nono branch December 9, 2019 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants