File: avoid-doctest-breakage.patch

package info (click to toggle)
rust-concolor 0.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 164 kB
  • sloc: makefile: 4
file content (14 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Avoid breakage during doc-tests

See https://github.com/rust-cli/concolor/issues/4 for discussion.

--- rust-concolor/src/lib.rs
+++ rust-concolor/src/lib.rs
@@ -30,6 +30,7 @@
 //! If you are providing a command line option for controlling color, just call
 //! ```rust
 //! let when = concolor::ColorChoice::Always;
+//! #[cfg(feature = "api_unstable")]
 //! concolor::set(when);
 //! ```
 //!