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,13 +68,9 @@ impl Debug for OutputProxy {
|
|||
impl OutputProxy {
|
||||
pub fn lock(&self) -> LockedOutputProxy {
|
||||
match *self {
|
||||
OutputProxy::Out(ref r) => {
|
||||
LockedOutputProxy::Out(r.lock())
|
||||
},
|
||||
OutputProxy::Err(ref r) => {
|
||||
LockedOutputProxy::Err(r.lock())
|
||||
},
|
||||
OutputProxy::Sink => LockedOutputProxy::Sink,
|
||||
OutputProxy::Out(ref r) => LockedOutputProxy::Out(r.lock()),
|
||||
OutputProxy::Err(ref r) => LockedOutputProxy::Err(r.lock()),
|
||||
OutputProxy::Sink => LockedOutputProxy::Sink,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue