Return a Result in invert_location (#3730)

* Return a Result in invert_location

* Add invertible to spellcheck dictionary

* Fix Some -> Ok
This commit is contained in:
Keith Yeung
2021-08-27 17:17:51 -07:00
committed by GitHub
parent 636d0b030f
commit 64cbeab3b3
8 changed files with 56 additions and 28 deletions
@@ -68,8 +68,8 @@ impl WeightTrader for DummyWeightTrader {
pub struct InvertNothing;
impl InvertLocation for InvertNothing {
fn invert_location(_: &MultiLocation) -> MultiLocation {
Here.into()
fn invert_location(_: &MultiLocation) -> sp_std::result::Result<MultiLocation, ()> {
Ok(Here.into())
}
}