mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-01 03:21:02 +00:00
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * format format file Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Format with new config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add Substrate Clippy config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Print Clippy version in CI Otherwise its difficult to reproduce locally. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make fmt happy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
committed by
GitHub
parent
ac435c96cf
commit
342d720573
@@ -300,7 +300,8 @@ pub trait HaulBlob {
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum HaulBlobError {
|
||||
/// Represents point-to-point link failure with a human-readable explanation of the specific issue is provided.
|
||||
/// Represents point-to-point link failure with a human-readable explanation of the specific
|
||||
/// issue is provided.
|
||||
Transport(&'static str),
|
||||
}
|
||||
|
||||
@@ -361,8 +362,9 @@ impl<
|
||||
message.try_into().map_err(|_| DispatchBlobError::UnsupportedXcmVersion)?;
|
||||
|
||||
// Prepend our bridge instance discriminator.
|
||||
// Can be used for fine-grained control of origin on destination in case of multiple bridge instances,
|
||||
// e.g. restrict `type UniversalAliases` and `UniversalOrigin` instruction to trust just particular bridge instance for `NetworkId`.
|
||||
// Can be used for fine-grained control of origin on destination in case of multiple bridge
|
||||
// instances, e.g. restrict `type UniversalAliases` and `UniversalOrigin` instruction to
|
||||
// trust just particular bridge instance for `NetworkId`.
|
||||
if let Some(bridge_instance) = OurPlaceBridgeInstance::get() {
|
||||
message.0.insert(0, DescendOrigin(bridge_instance));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user