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() { @@ -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();

5
ctru-rs/src/console.rs

@ -19,10 +19,7 @@ impl<'screen> Console<'screen> { @@ -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

Loading…
Cancel
Save