diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 19:08:00 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-11-06 19:08:00 +0100 |
commit | 1ff1d8542833689bf63539522850968e210d719c (patch) | |
tree | 6eea4600d4130b717654ac928e577689fb404b21 | |
parent | 1a70c523dc43230c535694fa7bf247e5858ab5cf (diff) |
Remove unnecessary scope
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/core/libimagrt/src/io.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/core/libimagrt/src/io.rs b/lib/core/libimagrt/src/io.rs index 8107db48..a031b04e 100644 --- a/lib/core/libimagrt/src/io.rs +++ b/lib/core/libimagrt/src/io.rs @@ -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, } } } |