ソースを参照

Fix compilation error due to rand API change

timvisee 4 年 前
コミット
dfb773a96e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/util.rs

+ 1 - 1
src/util.rs

@@ -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()
 }