Skip to content

Commit

Permalink
Merge pull request #14 from qwandor/debug
Browse files Browse the repository at this point in the history
Require Debug for MessageView.
  • Loading branch information
BrettDong authored Jul 8, 2024
2 parents 7f8215c + c586959 commit 39f9b4e
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 39f9b4e

Please sign in to comment.