chore: some clippy warnings

This commit is contained in:
rvcas 2023-06-02 19:47:52 -04:00
parent cdf8bd6548
commit cf6d04e95b
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
3 changed files with 4 additions and 4 deletions

View File

@ -1675,7 +1675,7 @@ pub fn check_replaceable_opaque_type(
pub fn replace_opaque_type(t: &mut Arc<Type>, data_types: &IndexMap<DataTypeKey, &TypedDataType>) {
if check_replaceable_opaque_type(t, data_types) && matches!(&**t, Type::App { .. }) {
let data_type = lookup_data_type_by_tipo(data_types, t).unwrap();
let new_type_fields = data_type.typed_parameters.clone();
let new_type_fields = data_type.typed_parameters;
let mut mono_types: IndexMap<u64, Arc<Type>> = IndexMap::new();

View File

@ -1,5 +1,5 @@
///! Type inference and checking of patterns used in case expressions
///! and variables bindings.
//! Type inference and checking of patterns used in case expressions
//! and variables bindings.
use std::{
collections::{HashMap, HashSet},
ops::Deref,

View File

@ -184,7 +184,7 @@ mod test {
use std::collections::HashMap;
use aiken_lang::{self, builtins};
use uplc::ast::{self as uplc_ast};
use uplc::ast as uplc_ast;
use crate::tests::TestProject;