Remove unnecessary scope

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2018-11-06 19:08:00 +01:00
parent 1a70c523dc
commit 1ff1d85428

View file

@ -68,12 +68,8 @@ impl Debug for OutputProxy {
impl OutputProxy { impl OutputProxy {
pub fn lock(&self) -> LockedOutputProxy { pub fn lock(&self) -> LockedOutputProxy {
match *self { match *self {
OutputProxy::Out(ref r) => { OutputProxy::Out(ref r) => LockedOutputProxy::Out(r.lock()),
LockedOutputProxy::Out(r.lock()) OutputProxy::Err(ref r) => LockedOutputProxy::Err(r.lock()),
},
OutputProxy::Err(ref r) => {
LockedOutputProxy::Err(r.lock())
},
OutputProxy::Sink => LockedOutputProxy::Sink, OutputProxy::Sink => LockedOutputProxy::Sink,
} }
} }