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 morphism;
|
||||||
mod parser;
|
mod parser;
|
||||||
|
@ -5,13 +6,11 @@ mod c_gen;
|
||||||
|
|
||||||
use {
|
use {
|
||||||
ariadne::{Color, Label, Report, ReportKind, Source},
|
ariadne::{Color, Label, Report, ReportKind, Source},
|
||||||
chumsky::{
|
chumsky::prelude::*,
|
||||||
prelude::*, text::*
|
|
||||||
},
|
|
||||||
laddertypes::{
|
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,
|
tiny_ansi::TinyAnsi,
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
use {
|
use laddertypes::morphism::Morphism;
|
||||||
laddertypes::{TypeDict, morphism::Morphism},
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct LdmcPrimCMorphism {
|
pub struct LdmcPrimCMorphism {
|
||||||
|
|
|
@ -63,8 +63,8 @@ pub fn morphism_base_parser(
|
||||||
ty_args.push((var_id, kind));
|
ty_args.push((var_id, kind));
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut src_type = type_dict.parse(&src_type.iter().collect::<String>()).expect("couldnt parse src type");
|
let 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 dst_type = type_dict.parse(&dst_type.iter().collect::<String>()).expect("couldnt parse dst type");
|
||||||
|
|
||||||
LdmcPrimCMorphism {
|
LdmcPrimCMorphism {
|
||||||
symbol,
|
symbol,
|
||||||
|
|
Loading…
Add table
Reference in a new issue