Skip to content

Commit

Permalink
Fixes a clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Cem Eliguzel committed Sep 25, 2023
1 parent 22d6a98 commit 88722b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/xcm/src/asset_id_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ where
AssetIdInfoGetter::get_asset_id(id.clone().into())
}
fn convert_back(what: &AssetId) -> Option<MultiLocation> {
AssetIdInfoGetter::get_asset_type(what.clone()).map(Into::into).flatten()
AssetIdInfoGetter::get_asset_type(what.clone()).and_then(Into::into)
}
}
impl<AssetId, AssetType, AssetIdInfoGetter> ConvertLocation<AssetId>
Expand Down

0 comments on commit 88722b0

Please sign in to comment.