forked from M-Labs/nac3
1
0
Fork 0

fix compilation warnings

This commit is contained in:
Sebastien Bourdeauducq 2023-11-26 09:09:24 +08:00
parent cee62aa6c5
commit 120f8da5c7
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ use inkwell::{
OptimizationLevel, OptimizationLevel,
}; };
use parking_lot::{Mutex, RwLock}; 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::{ use nac3core::{
codegen::{ codegen::{
@ -121,7 +121,7 @@ fn handle_assignment_pattern(
match &targets[0].node { match &targets[0].node {
ExprKind::Name { id, .. } => { ExprKind::Name { id, .. } => {
if let Ok(var) = handle_typevar_definition( if let Ok(var) = handle_typevar_definition(
value.borrow(), value,
resolver, resolver,
def_list, def_list,
unifier, unifier,
@ -130,7 +130,7 @@ fn handle_assignment_pattern(
internal_resolver.add_id_type(*id, var); internal_resolver.add_id_type(*id, var);
Ok(()) Ok(())
} else if let Ok(val) = } 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); internal_resolver.add_module_global(*id, val);
Ok(()) Ok(())