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 authored and GitHub committed 2021-08-28 02:17:51 +02:00
1 parent 636d0b030f
commit 64cbeab3b3
8 files changed
+56 -28

No files matched your search

@@ -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())
}
}