This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
chore/error: remove from str conversion and add deprecation notificat… #7472
Merged
Merged
Changes from 35 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8467f4a
chore/error: remove from str conversion and add deprecation notificat…
91744cd
fixup changes
c1085eb
fix test looking for gone ::Msg variant
524ee71
another test fix
2a09d3c
one is duplicate, the other is not, so duplicates reported are n-1
dbbd20f
darn spaces
drahnr 8d021f0
remove pointless doc comments of error variants without any value
311a58f
Merge remote-tracking branch 'origin/master' into bernhard-error-chore
8b3f12b
low hanging fruits (for a tall person)
2dbc971
moar error type variants
3e94fa6
avoid the storage modules for now
666dd5f
chore remove pointless error generic
69e849b
fix test for mocks, add a bunch of non_exhaustive
d54cb37
max line width
10a2278
Merge remote-tracking branch 'origin/master' into bernhard-error-chore
66b6989
test fixes due to error changes
49fe444
fin
2b5f9d7
Merge remote-tracking branch 'origin/master' into bernhard-error-chore
ff81007
error outputs... again
13ba47b
undo stderr adjustments
3dda02d
Update client/consensus/slots/src/lib.rs
drahnr eb7805b
remove closure clutter
drahnr 536f11e
more error types
bc40955
introduce ApiError
31f0259
extract Mock error
717ec7d
ApiError refactor
b4c1348
even more error types
cc2353d
the last for now
1d364ac
chore unused deps
56a0b2d
another extraction
c080594
reduce should panic, due to extended error messages
077301e
error test happiness
0983c88
shift error lines by one
0e9d696
doc tests
4b752b0
Merge remote-tracking branch 'origin/master' into bernhard-error-chore
35d2814
white space
drahnr 13810eb
Into -> From
drahnr 6df60d0
remove pointless codec
drahnr d0c0d24
avoid pointless self import
drahnr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we need all this bounds?
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.
Putting bounds on the declaration of a struct should be prevented as much as possible. And I don't see any reason here?
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.
Debug + Send + Sync + 'static
are required, otherwiseError<T>
will not beSend
orSync
. Slot data is there for features.Clone
can be removed though.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.
You only need the bounds on T where you need to have Error Send and Sync
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.
Which is the case a few lines down in https://github.com/paritytech/substrate/pull/7472/files/4b752b06c5ddc7ed0bc0d0735651042f3eb24315#diff-2ff27f67b9a711481f3fe7f514fd50c9f63a2bd2852fd47610dbd1a4c758b061R545