mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Simplify ConstellationControlMsg's Debug implementation.
This commit is contained in:
parent
b214c3c1da
commit
ef13f01b8e
1 changed files with 3 additions and 2 deletions
|
@ -258,7 +258,7 @@ pub enum ConstellationControlMsg {
|
|||
impl fmt::Debug for ConstellationControlMsg {
|
||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||
use self::ConstellationControlMsg::*;
|
||||
write!(formatter, "ConstellationMsg::{}", match *self {
|
||||
let variant = match *self {
|
||||
AttachLayout(..) => "AttachLayout",
|
||||
Resize(..) => "Resize",
|
||||
ResizeInactive(..) => "ResizeInactive",
|
||||
|
@ -285,7 +285,8 @@ impl fmt::Debug for ConstellationControlMsg {
|
|||
FramedContentChanged(..) => "FramedContentChanged",
|
||||
ReportCSSError(..) => "ReportCSSError",
|
||||
Reload(..) => "Reload"
|
||||
})
|
||||
};
|
||||
write!(formatter, "ConstellationMsg::{}", variant)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue