Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
SirCipher committed May 22, 2024
1 parent 293512e commit 41ec458
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ratchet_core/src/framed/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use std::convert::TryFrom;
use std::fmt::{Debug, Formatter};
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt};

#[derive(Debug, Eq,PartialEq)]
#[derive(Debug, Eq, PartialEq)]
pub enum Item {
Binary,
Text,
Expand Down
2 changes: 1 addition & 1 deletion ratchet_core/src/handshake/client/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ where
let path_and_query = uri
.path_and_query()
.map(ToString::to_string)
.unwrap_or_else(||"/".to_string());
.unwrap_or_else(|| "/".to_string());

Ok(ValidatedRequest {
version,
Expand Down
2 changes: 1 addition & 1 deletion ratchet_core/src/protocol/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub struct BorrowedFrameHeader<'l> {
pub mask: &'l Option<u32>,
}

#[derive(Debug, Copy, Clone, PartialEq,Eq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct FrameHeader {
pub opcode: OpCode,
pub flags: HeaderFlags,
Expand Down
4 changes: 2 additions & 2 deletions ratchet_core/src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl HeaderFlags {
}

/// A received WebSocket frame.
#[derive(Clone, Debug, PartialEq,Eq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Message {
/// A text message.
///
Expand Down Expand Up @@ -165,7 +165,7 @@ impl Role {
}
}

#[derive(Debug, Copy, Clone, Display, PartialEq,Eq )]
#[derive(Debug, Copy, Clone, Display, PartialEq, Eq)]
pub enum OpCode {
#[display(fmt = "{}", _0)]
DataCode(DataCode),
Expand Down

0 comments on commit 41ec458

Please sign in to comment.