mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 17:49:15 +02:00
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 {
|
pub fn rand_alphanum_string(len: usize) -> String {
|
||||||
let mut rng = thread_rng();
|
let mut rng = thread_rng();
|
||||||
iter::repeat(())
|
iter::repeat(())
|
||||||
.map(|()| rng.sample(Alphanumeric))
|
.map(|()| rng.sample(Alphanumeric) as char)
|
||||||
.take(len)
|
.take(len)
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue