Debian Codegraph @

debian/patches/random-trait-broken-doc-comment.patch

raw
1 diff --git a/Cargo.toml b/Cargo.toml
2 index 6c5011f..37eeb26 100644
3 --- a/Cargo.toml
4 +++ b/Cargo.toml
5 @@ -20,9 +20,6 @@ readme = "README.md"
6 keywords = ["rand", "random", "random-rs", "rng"]
7 categories = ["algorithms", "no-std", "development-tools::testing", "cryptography"]
8 license = "MIT/Apache-2.0"
9 -[dependencies.doc-comment]
10 -version = "0.3"
11 -optional = true
12
13 [features]
14 u128 = []
15 diff --git a/src/lib.rs b/src/lib.rs
16 index 63c6941..03c41bd 100644
17 --- a/src/lib.rs
18 +++ b/src/lib.rs
19 @@ -16,11 +16,6 @@
20
21 use core::{char, mem};
22
23 -#[cfg(feature = "doc-comment")]
24 -extern crate doc_comment;
25 -#[cfg(feature = "doc-comment")]
26 -doc_comment::doctest!("../README.md");
27 -
28 /// This trait is used by `Random::gen()` as a generic function to create a random value for any type which implements it.
29 /// I try to give by default implementations for all the types in libcore, including arrays and tuples, if anything is missing please raise the issue.
30 /// You can implement this for any of your types.