summaryrefslogtreecommitdiffstats
path: root/lib/core
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-11-06 19:08:00 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-11-06 19:08:00 +0100
commit1ff1d8542833689bf63539522850968e210d719c (patch)
tree6eea4600d4130b717654ac928e577689fb404b21 /lib/core
parent1a70c523dc43230c535694fa7bf247e5858ab5cf (diff)
Remove unnecessary scope
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/libimagrt/src/io.rs10
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,
}
}
}