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

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

Merged
Xanewok merged 1 commit into
rust-lang:masterfrom
kngwyu:fix-warn
Sep 6, 2018
Merged

Fix duplicated warning for rand::Rng::gen_ascii_chars#1042
Xanewok merged 1 commit into
rust-lang:masterfrom
kngwyu:fix-warn

Conversation

@kngwyu

@kngwyu kngwyu commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

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

Xanewok commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

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