From d49288d437777e856f8b21d2f53146e552fa8cbf Mon Sep 17 00:00:00 2001 From: ssnover Date: Tue, 15 Aug 2023 13:28:26 -0600 Subject: [PATCH 1/2] Put the example code in code tags --- rs-matter/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rs-matter/src/lib.rs b/rs-matter/src/lib.rs index 8a181ee2..f19e2e25 100644 --- a/rs-matter/src/lib.rs +++ b/rs-matter/src/lib.rs @@ -24,6 +24,7 @@ //! //! # Examples //! TODO: Fix once new API has stabilized a bit +//! ```rust //! use rs_matter::{Matter, CommissioningData}; //! use rs_matter::data_model::device_types::device_type_add_on_off_light; //! use rs_matter::data_model::cluster_basic_information::BasicInfoConfig; @@ -65,6 +66,7 @@ //! } //! // Start the Matter Daemon //! // matter.start_daemon().unwrap(); +//! ``` //! //! Start off exploring by going to the [Matter] object. #![cfg_attr(not(feature = "std"), no_std)] From 817138b355b0cb1a81f54b1a70fd4d3eab38970a Mon Sep 17 00:00:00 2001 From: ssnover Date: Tue, 15 Aug 2023 13:38:50 -0600 Subject: [PATCH 2/2] Use ignore for now until this example is fixed --- rs-matter/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rs-matter/src/lib.rs b/rs-matter/src/lib.rs index f19e2e25..9dea0e16 100644 --- a/rs-matter/src/lib.rs +++ b/rs-matter/src/lib.rs @@ -23,8 +23,8 @@ //! Currently Ethernet based transport is supported. //! //! # Examples -//! TODO: Fix once new API has stabilized a bit -//! ```rust +//! ```ignore +//! /// TODO: Fix once new API has stabilized a bit //! use rs_matter::{Matter, CommissioningData}; //! use rs_matter::data_model::device_types::device_type_add_on_off_light; //! use rs_matter::data_model::cluster_basic_information::BasicInfoConfig;