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;
|
||||
use app::App;
|
||||
mod backend;
|
||||
use backend::Backend;
|
||||
use std::io::Result;
|
||||
use std::rc::Rc;
|
||||
|
||||
// Entry Point
|
||||
fn main() -> Result<()> {
|
||||
// Creating a Backend
|
||||
let backend = Rc::new(Backend::new(false)?);
|
||||
|
||||
// Creating a new App
|
||||
let app = App::new()?;
|
||||
let app = App::new(Rc::clone(&backend))?;
|
||||
|
||||
// Starting our App
|
||||
app.start()?;
|
||||
|
|
Loading…
Reference in a new issue