Skip to content

Commit

Permalink
Incorporate clippy suggestion
Browse files Browse the repository at this point in the history
Clippy suggests to elide a lifetime in our Debug impl of the
DebugMessage type. Follow the suggestion.
  • Loading branch information
d-e-s-o committed Dec 29, 2024
1 parent f3c02db commit 9789ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrap.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2019-2023 Daniel Mueller <deso@posteo.net>
// Copyright (C) 2019-2024 Daniel Mueller <deso@posteo.net>
// SPDX-License-Identifier: GPL-3.0-or-later

use std::fmt::Debug;
Expand Down Expand Up @@ -171,7 +171,7 @@ struct DebugMessage<'m> {
message: &'m WebSocketMessage,
}

impl<'m> Debug for DebugMessage<'m> {
impl Debug for DebugMessage<'_> {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
match self.message {
// We could consider also attempting to decode the data passed to
Expand Down

0 comments on commit 9789ec6

Please sign in to comment.