chore: style

This commit is contained in:
2020-08-29 23:58:25 +08:00
parent 42cab3e274
commit 3a9904d555

View File

@@ -1,5 +1,5 @@
use std::net::{TcpStream};
use std::io::{Read, Write};
use std::net::TcpStream;
use std::io::{ Read, Write };
use std::str::from_utf8;
fn main() {
@@ -11,7 +11,7 @@ fn main() {
stream.write(msg).unwrap();
println!("Sent Hello, awaiting reply...");
let mut data = [0 as u8; 6]; // using 6 byte buffer
let mut data = [0_u8; 6]; // using 6 byte buffer
match stream.read_exact(&mut data) {
Ok(_) => {
if &data == msg {