git.delta.rocks / unique-network / refs/commits / c2beece34687

difftreelog

style(rmrk-proxy) cargo fmt

Fahrrader2022-06-02parent: #334927b.patch.diff
in: master

2 files changed

modifiedpallets/proxy-rmrk-core/src/lib.rsdiffbeforeafterboth
544 vec: &BoundedVec<u8, L>,
545 ) -> Result<BoundedVec<u8, S>, DispatchError>
546 where 544 where
547 BoundedVec<u8, S>: TryFrom<Vec<u8>> 545 BoundedVec<u8, S>: TryFrom<Vec<u8>>,
548 {546 {
549 vec.rebind().map_err(|_| <Error<T>>::RmrkPropertyValueIsTooLong.into())547 vec.rebind()
548 .map_err(|_| <Error<T>>::RmrkPropertyValueIsTooLong.into())
modifiedpallets/proxy-rmrk-core/src/misc.rsdiffbeforeafterboth
--- a/pallets/proxy-rmrk-core/src/misc.rs
+++ b/pallets/proxy-rmrk-core/src/misc.rs
@@ -37,7 +37,8 @@
 	BoundedVec<u8, S>: TryFrom<Vec<u8>>,
 {
 	fn rebind(&self) -> Result<BoundedVec<u8, S>, Error> {
-		BoundedVec::<u8, S>::try_from(self.clone().into_inner()).map_err(|_| "BoundedVec exceeds its limit".into())
+		BoundedVec::<u8, S>::try_from(self.clone().into_inner())
+			.map_err(|_| "BoundedVec exceeds its limit".into())
 	}
 }