From f6ffa6919ffb7be049490c655257b0de34df6f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 10 Nov 2017 18:24:44 +0100 Subject: [PATCH] Run latest commit through rustfmt --- gstreamer/src/enums.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gstreamer/src/enums.rs b/gstreamer/src/enums.rs index 08a6eb3f3..1c8581325 100644 --- a/gstreamer/src/enums.rs +++ b/gstreamer/src/enums.rs @@ -139,11 +139,15 @@ impl Error for FlowError { FlowError::Flushing => "Pad is flushing", FlowError::Eos => "Pad is EOS", FlowError::NotNegotiated => "Pad is not negotiated", - FlowError::Error => "Some (fatal) error occurred. Element generating this error should post an error message with more details", + FlowError::Error => { + "Some (fatal) error occurred. Element generating this error should post an error message with more details" + } FlowError::NotSupported => "This operation is not supported", - FlowError::CustomError => "Elements can use values starting from this (and lower) to define custom error codes", + FlowError::CustomError => { + "Elements can use values starting from this (and lower) to define custom error codes" + } FlowError::CustomError1 => "Pre-defined custom error code", - FlowError::CustomError2 => "Pre-defined custom error code" + FlowError::CustomError2 => "Pre-defined custom error code", } } } @@ -206,7 +210,7 @@ impl Error for PadLinkError { PadLinkError::WrongDirection => "Pads have wrong direction", PadLinkError::Noformat => "Pads do not have common format", PadLinkError::Nosched => "Pads cannot cooperate in scheduling", - PadLinkError::Refused => "Refused for some other reason" + PadLinkError::Refused => "Refused for some other reason", } } } @@ -277,7 +281,7 @@ impl Error for ClockError { ClockError::Busy => "The ClockID is busy", ClockError::Badtime => "A bad time was provided to a function", ClockError::Error => "An error occurred", - ClockError::Unsupported => "Operation is not supported" + ClockError::Unsupported => "Operation is not supported", } } }