fix compilation warnings
This commit is contained in:
parent
cee62aa6c5
commit
120f8da5c7
@ -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(())
|
||||||
|
Loading…
Reference in New Issue
Block a user