Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest committed Jul 6, 2023
1 parent 2274bee commit 442fb40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ fn set_default_ss58_version(chain_spec: &dyn IdentifyVariant) {
crypto::set_default_ss58_version(ss58_version);
}

#[cfg(any(feature = "runtime-benchmarks", feature = "try-runtime"))]
fn ensure_dev(spec: &dyn IdentifyVariant) -> Result<()> {
if spec.is_dev() {
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/xcm_configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<AccountId: From<[u8; 20]> + Into<[u8; 20]> + Clone> Convert<MultiLocation,
for Account20Hash<AccountId>
{
fn convert_ref(location: impl Borrow<MultiLocation>) -> Result<AccountId, ()> {
let hash: [u8; 32] = ("multiloc", location.borrow()).borrow().using_encoded(blake2_256);
let hash: [u8; 32] = ("multiloc", location.borrow()).using_encoded(blake2_256);
let mut account_id = [0u8; 20];
account_id.copy_from_slice(&hash[0..20]);
Ok(account_id.into())
Expand Down

0 comments on commit 442fb40

Please sign in to comment.