fix warnings
This commit is contained in:
parent
45453a04f4
commit
6cfb25a1a7
3 changed files with 7 additions and 10 deletions
|
@ -1,3 +1,4 @@
|
|||
#![allow(mixed_script_confusables)]
|
||||
|
||||
mod morphism;
|
||||
mod parser;
|
||||
|
@ -5,13 +6,11 @@ mod c_gen;
|
|||
|
||||
use {
|
||||
ariadne::{Color, Label, Report, ReportKind, Source},
|
||||
chumsky::{
|
||||
prelude::*, text::*
|
||||
},
|
||||
chumsky::prelude::*,
|
||||
laddertypes::{
|
||||
dict::TypeDict, parser::ParseLadderType, subtype_unify, unparser::UnparseLadderType, BimapTypeDict, Morphism, MorphismType
|
||||
parser::ParseLadderType, BimapTypeDict, MorphismType
|
||||
},
|
||||
std::{any::Any, sync::{Arc, RwLock}},
|
||||
std::sync::{Arc, RwLock},
|
||||
tiny_ansi::TinyAnsi,
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
use {
|
||||
laddertypes::{TypeDict, morphism::Morphism},
|
||||
};
|
||||
use laddertypes::morphism::Morphism;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct LdmcPrimCMorphism {
|
||||
|
|
|
@ -63,8 +63,8 @@ pub fn morphism_base_parser(
|
|||
ty_args.push((var_id, kind));
|
||||
}
|
||||
|
||||
let mut src_type = type_dict.parse(&src_type.iter().collect::<String>()).expect("couldnt parse src type");
|
||||
let mut dst_type = type_dict.parse(&dst_type.iter().collect::<String>()).expect("couldnt parse dst type");
|
||||
let src_type = type_dict.parse(&src_type.iter().collect::<String>()).expect("couldnt parse src type");
|
||||
let dst_type = type_dict.parse(&dst_type.iter().collect::<String>()).expect("couldnt parse dst type");
|
||||
|
||||
LdmcPrimCMorphism {
|
||||
symbol,
|
||||
|
|
Loading…
Add table
Reference in a new issue