Skip to content

Commit

Permalink
Polish for Release 0.1.5-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Sxmon17 committed Mar 3, 2023
1 parent b24f755 commit 5682701
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rum"
version = "0.1.0"
version = "0.1.5-alpha"
edition = "2021"

[dependencies]
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions src/server/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
}

type Tx = mpsc::UnboundedSender<String>;

type Rx = mpsc::UnboundedReceiver<String>;

struct Shared {
Expand Down Expand Up @@ -91,7 +90,9 @@ async fn process(
addr: SocketAddr,
) -> Result<(), Box<dyn Error>> {
let mut lines = Framed::new(stream, LinesCodec::new());
lines.send("Please enter your username:").await?;
lines
.send("Please enter your username:".blue().to_string())
.await?;
let username = match lines.next().await {
Some(Ok(line)) => line,
_ => {
Expand All @@ -101,7 +102,7 @@ async fn process(
};

lines
.send("\nWelcome to the chat!\n".green().to_string())
.send("\nWelcome to the chat!".green().to_string())
.await?;

let mut peer = Peer::new(state.clone(), lines).await?;
Expand Down

0 comments on commit 5682701

Please sign in to comment.