Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Fix duplicated warning for rand::Rng::gen_ascii_chars #1042

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

kngwyu
Copy link
Contributor

@kngwyu kngwyu commented Sep 6, 2018

Fix

warning: use of deprecated item 'rand::Rng::gen_ascii_chars': use sample_iter(&Alphanumeric) instead
   --> src/actions/format.rs:120:39
    |
120 |     let suffix: String = thread_rng().gen_ascii_chars().take(SUFFIX_LEN).collect();
    |                                       ^^^^^^^^^^^^^^^
    |
    = note: #[warn(deprecated)] on by default

@Xanewok Xanewok merged commit 9b7352b into rust-lang:master Sep 6, 2018
@Xanewok
Copy link
Member

Xanewok commented Sep 6, 2018

Thanks! =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants