From f482458e701b7d48158bc3ffbfc287cb2cb07909 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 29 May 2024 13:37:53 +0800 Subject: [PATCH 1/3] Update `runtime_type` ref doc with the new "Associated Type Bounds" Rust feature --- docs/sdk/src/reference_docs/frame_runtime_types.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sdk/src/reference_docs/frame_runtime_types.rs b/docs/sdk/src/reference_docs/frame_runtime_types.rs index 32cda5bc5345..d04e927d2f90 100644 --- a/docs/sdk/src/reference_docs/frame_runtime_types.rs +++ b/docs/sdk/src/reference_docs/frame_runtime_types.rs @@ -102,6 +102,10 @@ //! bounds, such as being [`frame::traits::IsSubType`]: #![doc = docify::embed!("./src/reference_docs/frame_runtime_types.rs", custom_runtime_call_usages)] //! +//! > Once Rust's "_Associated Type Bounds RFC_" is usable, the following syntax can be used to +//! > simplify the above scenario. See [this](https://github.com/paritytech/polkadot-sdk/issues/3743) +//! > issue for more information. +//! //! ### Asserting Equality of Multiple Runtime Composite Enums //! //! Recall that in the above example, `::RuntimeCall` and ` Date: Wed, 29 May 2024 13:42:09 +0800 Subject: [PATCH 2/3] update --- docs/sdk/src/reference_docs/frame_runtime_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/src/reference_docs/frame_runtime_types.rs b/docs/sdk/src/reference_docs/frame_runtime_types.rs index d04e927d2f90..daeddc1a1cdc 100644 --- a/docs/sdk/src/reference_docs/frame_runtime_types.rs +++ b/docs/sdk/src/reference_docs/frame_runtime_types.rs @@ -102,7 +102,7 @@ //! bounds, such as being [`frame::traits::IsSubType`]: #![doc = docify::embed!("./src/reference_docs/frame_runtime_types.rs", custom_runtime_call_usages)] //! -//! > Once Rust's "_Associated Type Bounds RFC_" is usable, the following syntax can be used to +//! > Once Rust's "_Associated Type Bounds RFC_" is usable, This syntax can be used to //! > simplify the above scenario. See [this](https://github.com/paritytech/polkadot-sdk/issues/3743) //! > issue for more information. //! From bba52bef6c3d932596b08ae9c210969217787b29 Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Thu, 30 May 2024 14:25:21 +0800 Subject: [PATCH 3/3] Update docs/sdk/src/reference_docs/frame_runtime_types.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Köcher --- docs/sdk/src/reference_docs/frame_runtime_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/src/reference_docs/frame_runtime_types.rs b/docs/sdk/src/reference_docs/frame_runtime_types.rs index daeddc1a1cdc..1eed9857a1d5 100644 --- a/docs/sdk/src/reference_docs/frame_runtime_types.rs +++ b/docs/sdk/src/reference_docs/frame_runtime_types.rs @@ -102,7 +102,7 @@ //! bounds, such as being [`frame::traits::IsSubType`]: #![doc = docify::embed!("./src/reference_docs/frame_runtime_types.rs", custom_runtime_call_usages)] //! -//! > Once Rust's "_Associated Type Bounds RFC_" is usable, This syntax can be used to +//! > Once Rust's "_Associated Type Bounds RFC_" is usable, this syntax can be used to //! > simplify the above scenario. See [this](https://github.com/paritytech/polkadot-sdk/issues/3743) //! > issue for more information. //!