Use ExactSizeIterator + TrustedLen instead of num_cases arg for switch

This commit is contained in:
bjorn3 2019-03-29 17:23:52 +01:00
parent 56842b2154
commit 35705dee7e
5 changed files with 7 additions and 6 deletions

View file

@ -20,6 +20,7 @@
#![feature(concat_idents)]
#![feature(link_args)]
#![feature(static_nobundle)]
#![feature(trusted_len)]
#![deny(rust_2018_idioms)]
#![allow(explicit_outlives_requirements)]