cleanup imports
This commit is contained in:
parent
b242d13054
commit
3377cc46df
@ -5,15 +5,17 @@ use crate::misc::*;
|
|||||||
use crate::parsing::{process_func_str, BackingFunction};
|
use crate::parsing::{process_func_str, BackingFunction};
|
||||||
use crate::suggestions::{generate_hint, HintEnum};
|
use crate::suggestions::{generate_hint, HintEnum};
|
||||||
use eframe::{egui, epaint};
|
use eframe::{egui, epaint};
|
||||||
use egui::{
|
|
||||||
epaint::text::cursor::Cursor, text::CCursor, text_edit::CursorRange, Key, TextEdit, Widget,
|
|
||||||
};
|
|
||||||
use egui::{
|
use egui::{
|
||||||
plot::{BarChart, PlotUi, Value},
|
plot::{BarChart, PlotUi, Value},
|
||||||
|
text::CCursor,
|
||||||
|
text_edit::CursorRange,
|
||||||
widgets::plot::Bar,
|
widgets::plot::Bar,
|
||||||
|
Key, TextEdit, Widget,
|
||||||
|
};
|
||||||
|
use epaint::{
|
||||||
|
text::cursor::{Cursor, PCursor, RCursor},
|
||||||
|
Color32,
|
||||||
};
|
};
|
||||||
use epaint::text::cursor::{PCursor, RCursor};
|
|
||||||
use epaint::Color32;
|
|
||||||
use std::fmt::{self, Debug};
|
use std::fmt::{self, Debug};
|
||||||
|
|
||||||
#[cfg(threading)]
|
#[cfg(threading)]
|
||||||
|
|||||||
@ -2,12 +2,10 @@ use crate::consts::*;
|
|||||||
use crate::function::{FunctionEntry, Riemann, DEFAULT_FUNCTION_ENTRY};
|
use crate::function::{FunctionEntry, Riemann, DEFAULT_FUNCTION_ENTRY};
|
||||||
use crate::misc::{dyn_mut_iter, option_vec_printer, JsonFileOutput, SerdeValueHelper};
|
use crate::misc::{dyn_mut_iter, option_vec_printer, JsonFileOutput, SerdeValueHelper};
|
||||||
use eframe::{egui, epi};
|
use eframe::{egui, epi};
|
||||||
use egui::plot::Plot;
|
|
||||||
use egui::{
|
use egui::{
|
||||||
Button, CentralPanel, Color32, ComboBox, Context, FontData, FontDefinitions, FontFamily, Key,
|
plot::Plot, Button, CentralPanel, Color32, ComboBox, Context, FontData, FontDefinitions,
|
||||||
RichText, SidePanel, Slider, TopBottomPanel, Vec2, Visuals, Window,
|
FontFamily, Key, RichText, SidePanel, Slider, TopBottomPanel, Vec2, Visuals, Window,
|
||||||
};
|
};
|
||||||
use epi::Frame;
|
|
||||||
use instant::Duration;
|
use instant::Duration;
|
||||||
use std::{collections::BTreeMap, io::Read, ops::BitXorAssign, str};
|
use std::{collections::BTreeMap, io::Read, ops::BitXorAssign, str};
|
||||||
|
|
||||||
@ -543,7 +541,7 @@ impl MathApp {
|
|||||||
impl epi::App for MathApp {
|
impl epi::App for MathApp {
|
||||||
/// Called each time the UI needs repainting, which may be many times per
|
/// Called each time the UI needs repainting, which may be many times per
|
||||||
/// second.
|
/// second.
|
||||||
fn update(&mut self, ctx: &Context, _frame: &mut Frame) {
|
fn update(&mut self, ctx: &Context, _frame: &mut epi::Frame) {
|
||||||
// start timer
|
// start timer
|
||||||
let start = instant::Instant::now();
|
let start = instant::Instant::now();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user