Browse Source

Formatting

pull/22/head
Andrea Ciliberti 3 years ago
parent
commit
2bc475db68
  1. 5
      ctru-rs/examples/network-sockets.rs
  2. 5
      ctru-rs/src/console.rs

5
ctru-rs/examples/network-sockets.rs

@ -23,10 +23,7 @@ fn main() {
let server = TcpListener::bind("0.0.0.0:80").unwrap(); let server = TcpListener::bind("0.0.0.0:80").unwrap();
server.set_nonblocking(true).unwrap(); server.set_nonblocking(true).unwrap();
println!( println!("Point your browser to http://{}/\n", soc.host_address());
"Point your browser to http://{}/\n",
soc.host_address()
);
while apt.main_loop() { while apt.main_loop() {
gfx.wait_for_vblank(); gfx.wait_for_vblank();

5
ctru-rs/src/console.rs

@ -19,10 +19,7 @@ impl<'screen> Console<'screen> {
unsafe { consoleInit(screen.as_raw(), context.as_mut()) }; unsafe { consoleInit(screen.as_raw(), context.as_mut()) };
Console { Console { context, screen }
context,
screen,
}
} }
/// Select this console as the current target for stdout /// Select this console as the current target for stdout

Loading…
Cancel
Save