Fix compilation error due to rand API change
This commit is contained in:
parent
ba865715d7
commit
dfb773a96e
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue