1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: add feature fencing to doctest
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1098346
Last-Update: 2025-02-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/bounded-static/src/lib.rs
+++ b/bounded-static/src/lib.rs
@@ -151,6 +151,7 @@
//! # Examples
//!
//! ```rust
+//! # #[cfg(feature = "derive")] {
//! # use std::borrow::Cow;
//! # use std::collections::HashMap;
//! # use bounded_static::ToStatic;
@@ -176,6 +177,7 @@
//! Second { fst: u32, snd: &'static str },
//! Third,
//! }
+//! # }
//! ```
#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
#![allow(clippy::missing_const_for_fn)]
|