Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53064f6

Browse filesBrowse files
authored
Convert u8 to char (necessary since rand 0.8) (#641)
1 parent 059c8a0 commit 53064f6
Copy full SHA for 53064f6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/concurrency/parallel/rayon-parallel-sort.md

Copy file name to clipboardExpand all lines: src/concurrency/parallel/rayon-parallel-sort.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
let mut vec = vec![String::new(); 100_000];
2020
vec.par_iter_mut().for_each(|p| {
2121
let mut rng = thread_rng();
22-
*p = (0..5).map(|_| rng.sample(&Alphanumeric)).collect()
22+
*p = (0..5).map(|_| rng.sample(&Alphanumeric) as char).collect()
2323
});
2424
vec.par_sort_unstable();
2525
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.