From dfb773a96e1debcfe900e65f2a81490a7ff07d9f Mon Sep 17 00:00:00 2001 From: timvisee Date: Mon, 4 Jan 2021 12:33:09 +0100 Subject: [PATCH] Fix compilation error due to rand API change --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index f3ec0ad..8486386 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1127,7 +1127,7 @@ impl From for FollowError { pub fn rand_alphanum_string(len: usize) -> String { let mut rng = thread_rng(); iter::repeat(()) - .map(|()| rng.sample(Alphanumeric)) + .map(|()| rng.sample(Alphanumeric) as char) .take(len) .collect() }