From b9d1b7731f73f536f548a5115e55cc665f2440a4 Mon Sep 17 00:00:00 2001 From: Zach Grimaldi Date: Sat, 6 Jul 2024 14:04:14 -0400 Subject: [PATCH] fix(v0.0.12): snippets require `rust,ignore` in docs --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a7a5d5a..fd87f54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mcp2003a" -version = "0.0.11" +version = "0.0.12" description = "Rust no_std LIN Bus communication using the MCP2003A LIN transceiver." edition = "2021" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 0232d4b..17ea19c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -30,13 +30,13 @@ //! - [MCP2003A Datasheet](https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/20002230G.pdf) //! //! # Usage -//! ```no_run +//! ```rust,ignore //! let mut mcp2003a = Mcp2003a::new(uart2_driver, break_pin_driver, delay, lin_bus_config); //! ``` //! //! Then you can use the `mcp2003a` instance to send and receive LIN frames. //! -//! ```no_run +//! ```rust,ignore //! mcp2003a.send_wakeup(); //! //! mc2003a.send_frame(0x01, &[0x02, 0x03], 0x05).unwrap();