generated from OBJNULL/Dockerized-Rust
Updated main to adapt changes
This commit is contained in:
parent
2a2ee14a15
commit
d4b7b500c8
1 changed files with 6 additions and 1 deletions
|
@ -2,12 +2,17 @@
|
||||||
mod app;
|
mod app;
|
||||||
use app::App;
|
use app::App;
|
||||||
mod backend;
|
mod backend;
|
||||||
|
use backend::Backend;
|
||||||
use std::io::Result;
|
use std::io::Result;
|
||||||
|
use std::rc::Rc;
|
||||||
|
|
||||||
// Entry Point
|
// Entry Point
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
|
// Creating a Backend
|
||||||
|
let backend = Rc::new(Backend::new(false)?);
|
||||||
|
|
||||||
// Creating a new App
|
// Creating a new App
|
||||||
let app = App::new()?;
|
let app = App::new(Rc::clone(&backend))?;
|
||||||
|
|
||||||
// Starting our App
|
// Starting our App
|
||||||
app.start()?;
|
app.start()?;
|
||||||
|
|
Loading…
Reference in a new issue