From 120f8da5c7a2b3003579bb63b6f51e3d8737e9f5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 26 Nov 2023 09:09:24 +0800 Subject: [PATCH] fix compilation warnings --- nac3standalone/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nac3standalone/src/main.rs b/nac3standalone/src/main.rs index 9deb34ec2..bfa0a5127 100644 --- a/nac3standalone/src/main.rs +++ b/nac3standalone/src/main.rs @@ -7,7 +7,7 @@ use inkwell::{ OptimizationLevel, }; use parking_lot::{Mutex, RwLock}; -use std::{borrow::Borrow, collections::HashMap, fs, path::Path, sync::Arc}; +use std::{collections::HashMap, fs, path::Path, sync::Arc}; use nac3core::{ codegen::{ @@ -121,7 +121,7 @@ fn handle_assignment_pattern( match &targets[0].node { ExprKind::Name { id, .. } => { if let Ok(var) = handle_typevar_definition( - value.borrow(), + value, resolver, def_list, unifier, @@ -130,7 +130,7 @@ fn handle_assignment_pattern( internal_resolver.add_id_type(*id, var); Ok(()) } else if let Ok(val) = - parse_parameter_default_value(value.borrow(), resolver) + parse_parameter_default_value(value, resolver) { internal_resolver.add_module_global(*id, val); Ok(())