From 8b890aa4e672e059160cf8d88d12642c3da106ba Mon Sep 17 00:00:00 2001 From: Marcin Date: Wed, 18 Jan 2023 06:37:34 +0100 Subject: [PATCH] Fix for the runtime check --- aleph-client/docker/subxt-integration-entrypoint.sh | 4 +--- aleph-client/src/aleph_zero.rs | 1 - aleph-client/src/lib.rs | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/aleph-client/docker/subxt-integration-entrypoint.sh b/aleph-client/docker/subxt-integration-entrypoint.sh index 3720d936a6..a60bb03acd 100644 --- a/aleph-client/docker/subxt-integration-entrypoint.sh +++ b/aleph-client/docker/subxt-integration-entrypoint.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash -# an ugly workaround for the fact we want to ignore rustdoc warnings in generated runtime file -echo "#[doc(hidden)]" > aleph_zero.rs -subxt codegen --derive Clone --derive Debug --derive Eq --derive PartialEq | rustfmt --edition=2021 --config-path aleph-node/rustfmt.toml >> aleph_zero.rs +subxt codegen --derive Clone --derive Debug --derive Eq --derive PartialEq | rustfmt --edition=2021 --config-path aleph-node/rustfmt.toml > aleph_zero.rs diff -y -W 200 --suppress-common-lines aleph_zero.rs aleph-node/aleph-client/src/aleph_zero.rs diff_exit_code=$? diff --git a/aleph-client/src/aleph_zero.rs b/aleph-client/src/aleph_zero.rs index 810b80fb6e..c3d5c0f443 100644 --- a/aleph-client/src/aleph_zero.rs +++ b/aleph-client/src/aleph_zero.rs @@ -1,4 +1,3 @@ -#[doc(hidden)] #[allow(dead_code, unused_imports, non_camel_case_types)] pub mod api { use super::api as root_mod; diff --git a/aleph-client/src/lib.rs b/aleph-client/src/lib.rs index 2f0e79dbe3..51780c5fc5 100644 --- a/aleph-client/src/lib.rs +++ b/aleph-client/src/lib.rs @@ -23,6 +23,7 @@ use subxt::{ use crate::api::runtime_types::aleph_runtime::RuntimeCall as Call; // generated by running `subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2021 > src/aleph_zero.rs` #[allow(clippy::all)] +#[doc(hidden)] mod aleph_zero; mod connections; pub mod contract;