From 0826e32c9a3910632940099089980db4b902d003 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 5 Jan 2019 16:18:20 -0800 Subject: [PATCH] Tidy up unnecessary return statements. --- lib/runtime/src/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index bdeb213200..ade06b5f61 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -412,7 +412,7 @@ impl InstanceContents { /// Return a reference to the custom state attached to this instance. pub fn host_state(&mut self) -> &mut Any { - return &mut *self.host_state; + &mut *self.host_state } } @@ -691,7 +691,7 @@ impl Instance { /// Return a reference to the custom state attached to this instance. pub fn host_state(&mut self) -> &mut Any { - return self.mmap_field.contents_mut().host_state(); + self.mmap_field.contents_mut().host_state() } }