index : snake-rs
An implementation of the classic Snake game in Rust using SDL2
about summary refs log tree commit diff

Diffstat (limited to 'src/main.rs')

-rw-r--r-- src/main.rs 8
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index de4f2a1..d283772 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,14 +1,14 @@
use crate::{app::App, renderer::Renderer};
use crate::app::App;

mod app;
mod renderer;
mod game_context;
mod renderer;
mod ui_components;

fn main() -> Result<(), String> {
    let mut app: App = App::new()?;
    let mut renderer: Renderer = Renderer::new(&mut app)?;

    app.run(&mut renderer);
    app.run();
    println!("Hello, world!");
    Ok(())
}