fix warnings

This commit is contained in:
Michael Sippel 2025-03-15 19:48:02 +01:00
parent 45453a04f4
commit 6cfb25a1a7
Signed by: senvas
GPG key ID: F96CF119C34B64A6
3 changed files with 7 additions and 10 deletions

View file

@ -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,

View file

@ -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 {

View file

@ -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,