Fix cast_possible_truncation warnings

This commit is contained in:
Devon Hollowood
2018-10-08 21:40:21 -07:00
parent 995a974182
commit eef2e8948b
5 changed files with 43 additions and 11 deletions

View File

@@ -21,6 +21,7 @@
#![feature(tool_lints)]
#![warn(rust_2018_idioms, trivial_casts, trivial_numeric_casts)]
#![feature(crate_visibility_modifier)]
#![feature(try_from)]
// FIXME: switch to something more ergonomic here, once available.
// (currently there is no way to opt into sysroot crates w/o `extern crate`)