From c4d6b3691af5ac3603a75e82e0986d28123467d0 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sat, 21 Aug 2021 15:10:50 +0800 Subject: [PATCH] codegen/expr: fixed warnings --- nac3core/src/codegen/expr.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nac3core/src/codegen/expr.rs b/nac3core/src/codegen/expr.rs index 04790e42..17da284c 100644 --- a/nac3core/src/codegen/expr.rs +++ b/nac3core/src/codegen/expr.rs @@ -258,7 +258,6 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> { } ExprKind::Name { id, .. } => { let ptr = self.var_assignment.get(id).unwrap(); - let primitives = &self.primitives; self.builder.build_load(*ptr, "load") } ExprKind::List { elts, .. } => { @@ -539,7 +538,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> { } } ExprKind::Subscript { value, slice, .. } => { - if let TypeEnum::TList { ty } = &*self.unifier.get_ty(value.custom.unwrap()) { + if let TypeEnum::TList { .. } = &*self.unifier.get_ty(value.custom.unwrap()) { if let ExprKind::Slice { .. } = slice.node { unimplemented!() } else {