Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/line.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#![allow(dead_code)]

Check failure on line 1 in src/line.rs

View workflow job for this annotation

GitHub Actions / Cargo clippy (and report)

`allow` attribute without specifying a reason

error: `allow` attribute without specifying a reason --> src/line.rs:1:1 | 1 | #![allow(dead_code)] | ^^^^^^^^^^^^^^^^^^^^ | = help: try adding a reason at the end with `, reason = ".."` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#allow_attributes_without_reason = note: requested on the command line with `-D clippy::allow-attributes-without-reason`
use ::rand::distr::uniform::{SampleRange, SampleUniform};
use mockall::automock;
use rand::Rng as _;
use rand::rngs::ThreadRng;

trait GetRandomOld {
fn gen_range<T, R>(&mut self, range: R) -> T
where
T: SampleUniform + 'static,
R: SampleRange<T> + 'static;
}

#[automock]
trait GetRandom {
fn gen_range<T, R>(&mut self, range: R) -> T
Expand Down
Loading