chore: Enable rust tests in CI (#50)

* git: Run job from the `main` branch instead of `master`

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Expose terminal colors for CI

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Fix CI and add extra checks

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Fix clippy

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Add missing `cargo hack` command

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* git: Use actions-rs/target for wasm

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-02-21 14:01:46 +02:00
committed by GitHub
parent 1ea3299208
commit f84ba3ff49
2 changed files with 151 additions and 94 deletions
+3 -3
View File
@@ -101,9 +101,9 @@ pub use self::v14::*;
#[cfg_attr(feature = "serde_full", derive(Serialize))]
pub struct RuntimeMetadataPrefixed(pub u32, pub RuntimeMetadata);
impl Into<Vec<u8>> for RuntimeMetadataPrefixed {
fn into(self) -> Vec<u8> {
self.encode()
impl From<RuntimeMetadataPrefixed> for Vec<u8> {
fn from(value: RuntimeMetadataPrefixed) -> Self {
value.encode()
}
}