diff --git a/ctru-rs/examples/gfx-wide-mode.rs b/ctru-rs/examples/gfx-wide-mode.rs index ac84d60..633488c 100644 --- a/ctru-rs/examples/gfx-wide-mode.rs +++ b/ctru-rs/examples/gfx-wide-mode.rs @@ -26,7 +26,7 @@ fn main() { let wide_mode = gfx.top_screen.borrow().get_wide_mode(); gfx.top_screen.borrow_mut().set_wide_mode(!wide_mode); - + _console = Console::init(gfx.top_screen.borrow_mut()); println!("Press A to enable/disable wide screen mode."); } diff --git a/ctru-rs/examples/hello-world.rs b/ctru-rs/examples/hello-world.rs index bb653dd..57407a5 100644 --- a/ctru-rs/examples/hello-world.rs +++ b/ctru-rs/examples/hello-world.rs @@ -41,4 +41,4 @@ fn main() { //Wait for VBlank gfx.wait_for_vblank(); } -} \ No newline at end of file +} diff --git a/ctru-rs/examples/network-sockets.rs b/ctru-rs/examples/network-sockets.rs index 3844b35..6f434ee 100644 --- a/ctru-rs/examples/network-sockets.rs +++ b/ctru-rs/examples/network-sockets.rs @@ -23,10 +23,7 @@ fn main() { let server = TcpListener::bind("0.0.0.0:80").unwrap(); server.set_nonblocking(true).unwrap(); - println!( - "Point your browser to http://{}/\n", - soc.host_address() - ); + println!("Point your browser to http://{}/\n", soc.host_address()); while apt.main_loop() { gfx.wait_for_vblank(); diff --git a/ctru-rs/src/console.rs b/ctru-rs/src/console.rs index 8763eb2..2df1495 100644 --- a/ctru-rs/src/console.rs +++ b/ctru-rs/src/console.rs @@ -19,10 +19,7 @@ impl<'screen> Console<'screen> { unsafe { consoleInit(screen.as_raw(), context.as_mut()) }; - Console { - context, - screen, - } + Console { context, screen } } /// Select this console as the current target for stdout