feat(imports): update imports

This commit is contained in:
doryan 2024-08-10 00:52:53 +04:00
parent e9dbcb272e
commit ef3158e732
3 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,9 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::LazyLock;
use crate::{ use crate::{
controller::view_utils::{hamming_code_input_utils::*, input_utils::*}, controller::view_utils::{hamming_code_input_utils::*, input_utils::*},
model::models::*, model::{models::*, Result},
}; };
static SYNDROMES: LazyLock<HashMap<usize, (bool, bool, bool)>> = LazyLock::new(|| { static SYNDROMES: LazyLock<HashMap<usize, (bool, bool, bool)>> = LazyLock::new(|| {

View File

@ -1,6 +1,9 @@
use gtk4 as gtk; use gtk4 as gtk;
use crate::{model::models::*, model_utils::hamming_code_seven_four::*}; use crate::{
model::{models::*, Result},
model_utils::hamming_code_seven_four::*,
};
use gtk::{prelude::*, *}; use gtk::{prelude::*, *};
pub fn start_hamming_algorithm(input: &TextView, output: &TextView, mode: bool) { pub fn start_hamming_algorithm(input: &TextView, output: &TextView, mode: bool) {

View File

@ -1,12 +1,8 @@
use std::{cell::Cell, rc::Rc}; use std::cell::Cell;
use std::rc::Rc;
use crate::{ use crate::{
event_handlers::button_event_handlers::BtnEventHandler, model::{builder_traits::Product, models::SignalReduce, Frequency},
model::{
builder_traits::Product,
models::{EventHandler, SignalReduce},
ResultValue,
},
model_utils::signal_reducer::{ model_utils::signal_reducer::{
coef_of_signal_reduce, full_resistance_of_capacitor, reactive_resistance_of_capacitor, coef_of_signal_reduce, full_resistance_of_capacitor, reactive_resistance_of_capacitor,
voltage_from_signal_source, voltage_from_signal_source,
@ -19,7 +15,7 @@ use crate::{
}; };
use gtk::{ use gtk::{
prelude::{BoxExt, Cast, CastNone, GridExt, ListItemExt}, prelude::{BoxExt, ButtonExt, Cast, CastNone, GridExt, ListItemExt, ListModelExt},
Align, WrapMode, *, Align, WrapMode, *,
}; };
use gtk4 as gtk; use gtk4 as gtk;