Skip to content

Commit d0fb9e9

Browse files
committed
clippy
1 parent d3ffe69 commit d0fb9e9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/secure_connect.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ async fn main() -> Result<(), anyhow::Error> {
5252
String::from_utf8_lossy(&content)
5353
);
5454
} else {
55-
println!(
56-
"Received empty message (id: {message_id}) from {destination}"
57-
);
55+
println!("Received empty message (id: {message_id}) from {destination}");
5856
}
5957
} else {
6058
println!("Received non-message frame: {message:?}");

src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ impl ToServer {
542542
///
543543
/// This method creates a Frame representation of the message
544544
/// that can be serialized and sent over the wire.
545-
pub(crate) fn to_frame(&self) -> Frame {
545+
pub(crate) fn to_frame<'a>(&'a self) -> Frame<'a> {
546546
use self::opt_str_to_bytes as sb;
547547
use Cow::*;
548548
use ToServer::*;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl Message<ToServer> {
271271
///
272272
/// This method converts the high-level Message to the low-level Frame
273273
/// representation needed for serialization.
274-
fn to_frame(&self) -> Frame {
274+
fn to_frame<'a>(&'a self) -> Frame<'a> {
275275
// Create a frame from the message content
276276
let mut frame = self.content.to_frame();
277277
// Add any extra headers to the frame

0 commit comments

Comments
 (0)