deduplicate declarations in main.rs and lib.rs
This commit is contained in:
parent
c7760e2123
commit
48fd49e386
@ -12,7 +12,7 @@ mod widgets;
|
|||||||
|
|
||||||
pub use crate::{
|
pub use crate::{
|
||||||
function_entry::{FunctionEntry, Riemann},
|
function_entry::{FunctionEntry, Riemann},
|
||||||
math_app::AppSettings,
|
math_app::{AppSettings, MathApp},
|
||||||
misc::{EguiHelper, newtons_method, option_vec_printer, step_helper},
|
misc::{EguiHelper, newtons_method, option_vec_printer, step_helper},
|
||||||
unicode_helper::{to_chars_array, to_unicode_hash},
|
unicode_helper::{to_chars_array, to_unicode_hash},
|
||||||
};
|
};
|
||||||
|
|||||||
13
src/main.rs
13
src/main.rs
@ -1,14 +1,3 @@
|
|||||||
#[macro_use]
|
|
||||||
extern crate static_assertions;
|
|
||||||
|
|
||||||
mod consts;
|
|
||||||
mod function_entry;
|
|
||||||
mod function_manager;
|
|
||||||
mod math_app;
|
|
||||||
mod misc;
|
|
||||||
mod unicode_helper;
|
|
||||||
mod widgets;
|
|
||||||
|
|
||||||
// For running the program natively! (Because why not?)
|
// For running the program natively! (Because why not?)
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
fn main() -> eframe::Result<()> {
|
fn main() -> eframe::Result<()> {
|
||||||
@ -21,6 +10,6 @@ fn main() -> eframe::Result<()> {
|
|||||||
eframe::run_native(
|
eframe::run_native(
|
||||||
"(Yet-to-be-named) Graphing Software",
|
"(Yet-to-be-named) Graphing Software",
|
||||||
eframe::NativeOptions::default(),
|
eframe::NativeOptions::default(),
|
||||||
Box::new(|cc| Ok(Box::new(math_app::MathApp::new(cc)))),
|
Box::new(|cc| Ok(Box::new(ytbn_graphing_software::MathApp::new(cc)))),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user