Update compiler/mono/src/layout.rs

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Chadtech 2020-08-31 17:02:02 -04:00 committed by GitHub
parent 6b351d0375
commit 2ae63c87d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -311,7 +311,7 @@ fn layout_from_flat_type<'a>(
// Num.Num should only ever have 1 argument, e.g. Num.Num Int.Integer
debug_assert_eq!(args.len(), 1);
let var = args.get(0).unwrap();
let var = args.first().unwrap();
let content = subs.get_without_compacting(*var).content;
layout_from_num_content(content)