Skip to content

Commit

Permalink
reformat example server
Browse files Browse the repository at this point in the history
  • Loading branch information
stevefan1999-personal committed Jun 25, 2022
1 parent 5feaeaf commit 4a87684
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 7 additions & 6 deletions examples/server/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ use embedded_websocket as ws;
use httparse::Request;
use once_cell::sync::Lazy;
use route_recognizer::Router;
use std::io::{Read, Write};
use std::net::{TcpListener, TcpStream};
use std::str::Utf8Error;
use std::thread;
use ws::framer::ReadResult;
use std::{
io::{Read, Write},
net::{TcpListener, TcpStream},
str::Utf8Error,
thread,
};
use ws::{
framer::{Framer, FramerError},
framer::{Framer, FramerError, ReadResult},
WebSocketSendMessageType, WebSocketServer,
};

Expand Down
3 changes: 1 addition & 2 deletions examples/server_async/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ use httparse::Request;
use once_cell::sync::Lazy;
use route_recognizer::Router;
use std::str::Utf8Error;
use ws::framer::ReadResult;
use ws::{
framer::{Framer, FramerError},
framer::{Framer, FramerError, ReadResult},
WebSocketSendMessageType, WebSocketServer,
};

Expand Down

0 comments on commit 4a87684

Please sign in to comment.