[F] Port fix #383 to rust
This commit is contained in:
@@ -831,6 +831,7 @@ fn create_config(
|
|||||||
let preset_index_permutations: IndexSet<Vec<PresetIndexedColor>> = preset_indices
|
let preset_index_permutations: IndexSet<Vec<PresetIndexedColor>> = preset_indices
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.permutations(slots.len())
|
.permutations(slots.len())
|
||||||
|
.take(1000)
|
||||||
.collect();
|
.collect();
|
||||||
let random_count = u16::from(ascii_per_row)
|
let random_count = u16::from(ascii_per_row)
|
||||||
.checked_mul(u16::from(ascii_rows))
|
.checked_mul(u16::from(ascii_rows))
|
||||||
|
|||||||
Reference in New Issue
Block a user