Skip to content

Commit

Permalink
Require Debug for MessageView.
Browse files Browse the repository at this point in the history
This is technically a breaking change, as a client could have
implemented this trait for some reason.
  • Loading branch information
qwandor committed Jul 4, 2024
1 parent 7f8215c commit c586959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::borrow::{Borrow, ToOwned};
use std::error::Error;
use std::fmt::{Display, Formatter};
use std::fmt::{Debug, Display, Formatter};

use crate::message::{Message, MessageFlags};

Expand All @@ -19,7 +19,7 @@ impl Display for SingularPluralMismatchError {
impl Error for SingularPluralMismatchError {}

/// Immutable view of a `Message`.
pub trait MessageView {
pub trait MessageView: Debug {
/// Is this message singular?
fn is_singular(&self) -> bool;

Expand Down

0 comments on commit c586959

Please sign in to comment.