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

put TryInto and TryFrom in sp_std::prelude #10183

Merged
merged 8 commits into from
Nov 7, 2021
Merged

put TryInto and TryFrom in sp_std::prelude #10183

merged 8 commits into from
Nov 7, 2021

Conversation

kianenigma
Copy link
Contributor

given #10170, we can drop a lot of imports, assuming that we also add these traits to our prelude.

Fixes ##10181

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Nov 4, 2021
@kianenigma kianenigma changed the title Kiz prelude 2021 align put TryInto and TryFrom in sp_std::prelude Nov 4, 2021
@kianenigma kianenigma changed the title align put TryInto and TryFrom in sp_std::prelude put TryInto and TryFrom in sp_std::prelude Nov 5, 2021
@kianenigma kianenigma requested a review from bkchr November 5, 2021 08:21
@bkchr
Copy link
Member

bkchr commented Nov 5, 2021

It does not compile :P

@kianenigma kianenigma added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Nov 5, 2021
@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Waiting on code owner review from andresilva.

@kianenigma
Copy link
Contributor Author

bot merge force

@paritytech-processbot
Copy link

Error: Waiting on code owner review from andresilva.

@kianenigma
Copy link
Contributor Author

I think this new rule is a bit too much, specially for substrate-node, but anyway 🤷

@bkchr bkchr merged commit 2e8bb09 into master Nov 7, 2021
@bkchr bkchr deleted the kiz-prelude-2021 branch November 7, 2021 23:24
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Switch to Rust 2021

* Update trybuild to fix errors

* half baked

* fix

* remove unused import

* remove more warnings

Co-authored-by: Bastian Köcher <info@kchr.de>
AurevoirXavier added a commit to darwinia-network/darwinia-common that referenced this pull request Aug 4, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Switch to Rust 2021

* Update trybuild to fix errors

* half baked

* fix

* remove unused import

* remove more warnings

Co-authored-by: Bastian Köcher <info@kchr.de>
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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants