Fix compilation error due to rand API change

This commit is contained in:
timvisee 2021-01-04 12:33:09 +01:00
parent ba865715d7
commit dfb773a96e
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -1127,7 +1127,7 @@ impl From<ResponseError> 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()
}