Browse Source

Feat(Errors) add error handling (#274)

* update .gitignore

* remove cargo.lock

* minor cleanup.
Tensor-Programming 5 years ago
parent
commit
968cc9c94c
3 changed files with 5 additions and 5 deletions
  1. 2 1
      tauri/src/app.rs
  2. 1 1
      tauri/src/app/runner.rs
  3. 2 3
      tauri/src/lib.rs

+ 2 - 1
tauri/src/app.rs

@@ -1,6 +1,7 @@
-mod runner;
 use web_view::WebView;
 
+mod runner;
+
 //type FnMut(&mut InvokeHandler<WebView<'_, ()>>, &str) = FnMut(&mut FnMut(&mut InvokeHandler<WebView<'_, ()>>, &str)<WebView<'_, ()>>, &str);
 
 pub struct App {

+ 1 - 1
tauri/src/app/runner.rs

@@ -3,10 +3,10 @@ use std::{fs::read_to_string, path::Path, process::Stdio, thread::spawn};
 
 use web_view::{builder, Content, WebView};
 
+use super::App;
 use crate::config::{get, Config};
 #[cfg(feature = "embedded-server")]
 use crate::tcp::{get_available_port, port_is_available};
-use crate::App;
 use crate::TauriResult;
 
 // JavaScript string literal

+ 2 - 3
tauri/src/lib.rs

@@ -20,17 +20,16 @@ mod salt;
 #[cfg(feature = "embedded-server")]
 mod tcp;
 
+mod app;
 #[cfg(not(feature = "dev-server"))]
 pub mod assets;
 
-mod app;
-
 use std::process::Stdio;
 
 use threadpool::ThreadPool;
 
 pub use app::*;
-use web_view::*;
+use web_view::WebView;
 
 pub use tauri_api as api;