-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from upstream #1123
Update from upstream #1123
Conversation
febbec3
to
2d5929a
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1123 +/- ##
==========================================
+ Coverage 75.08% 75.09% +0.01%
==========================================
Files 58 58
Lines 2464 2461 -3
Branches 72 72
==========================================
- Hits 1850 1848 -2
+ Misses 597 596 -1
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
[workspace.lints.rust] | ||
suspicious_double_ref_op = { level = "allow", priority = 2 } | ||
|
||
[workspace.lints.clippy] | ||
all = { level = "allow", priority = 0 } | ||
correctness = { level = "warn", priority = 1 } | ||
complexity = { level = "warn", priority = 1 } | ||
if-same-then-else = { level = "allow", priority = 2 } | ||
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000 | ||
type_complexity = { level = "allow", priority = 2 } # raison d'etre | ||
nonminimal-bool = { level = "allow", priority = 2 } # maybe | ||
borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one | ||
too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to) | ||
needless-lifetimes = { level = "allow", priority = 2 } # generated code | ||
unnecessary_cast = { level = "allow", priority = 2 } # Types may change | ||
identity-op = { level = "allow", priority = 2 } # One case where we do 0 + | ||
useless_conversion = { level = "allow", priority = 2 } # Types may change | ||
unit_arg = { level = "allow", priority = 2 } # stylistic | ||
option-map-unit-fn = { level = "allow", priority = 2 } # stylistic | ||
bind_instead_of_map = { level = "allow", priority = 2 } # stylistic | ||
erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS | ||
eq_op = { level = "allow", priority = 2 } # In tests we test equality. | ||
while_immutable_condition = { level = "allow", priority = 2 } # false positives | ||
needless_option_as_deref = { level = "allow", priority = 2 } # false positives | ||
derivable_impls = { level = "allow", priority = 2 } # false positives | ||
stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort | ||
extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic | ||
default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic |
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.
Same lints as the polkadot-sdk.
@@ -21,8 +21,8 @@ use sp_runtime::{ | |||
BuildStorage, FixedU128, MultiSignature, | |||
}; | |||
use sp_std::convert::From; | |||
use xcm::v3::{prelude::*, MultiAssets, SendXcm}; | |||
use xcm_executor::Assets; | |||
use xcm::v4::{prelude::*, SendXcm}; |
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.
Seems the explicit v4
is unnecessary here, it's by default exposed in xcm::prelude
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.
Good point! Changed in b8515e6
@@ -16,7 +16,7 @@ use snowbridge_core::{ | |||
}; | |||
use sp_core::{H160, H256}; | |||
use sp_std::{iter::Peekable, marker::PhantomData, prelude::*}; | |||
use xcm::v3::prelude::*; | |||
use xcm::v4::prelude::*; |
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.
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.
+1
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.
+1
Changes to our crates on the upstream polkadot-sdk.
Polkadot-sdk companion: Snowfork/polkadot-sdk#103