Remove unnecessary scope
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
1a70c523dc
commit
1ff1d85428
1 changed files with 3 additions and 7 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue