mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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 {
|
impl fmt::Debug for ConstellationControlMsg {
|
||||||
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
use self::ConstellationControlMsg::*;
|
use self::ConstellationControlMsg::*;
|
||||||
write!(formatter, "ConstellationMsg::{}", match *self {
|
let variant = match *self {
|
||||||
AttachLayout(..) => "AttachLayout",
|
AttachLayout(..) => "AttachLayout",
|
||||||
Resize(..) => "Resize",
|
Resize(..) => "Resize",
|
||||||
ResizeInactive(..) => "ResizeInactive",
|
ResizeInactive(..) => "ResizeInactive",
|
||||||
|
@ -285,7 +285,8 @@ impl fmt::Debug for ConstellationControlMsg {
|
||||||
FramedContentChanged(..) => "FramedContentChanged",
|
FramedContentChanged(..) => "FramedContentChanged",
|
||||||
ReportCSSError(..) => "ReportCSSError",
|
ReportCSSError(..) => "ReportCSSError",
|
||||||
Reload(..) => "Reload"
|
Reload(..) => "Reload"
|
||||||
})
|
};
|
||||||
|
write!(formatter, "ConstellationMsg::{}", variant)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue