From 645fa3e858180a4a81140a8484e9d3925493a35f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 13 Apr 2018 13:48:16 -0700 Subject: [PATCH] Minor code cleanup. --- lib/cretonne/src/ir/function.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/cretonne/src/ir/function.rs b/lib/cretonne/src/ir/function.rs index 19baa16b2b..f7dee1b918 100644 --- a/lib/cretonne/src/ir/function.rs +++ b/lib/cretonne/src/ir/function.rs @@ -179,9 +179,7 @@ impl Function { /// Wrapper around `DataFlowGraph::encode` which assigns `inst` the resulting encoding. pub fn update_encoding(&mut self, inst: ir::Inst, isa: &TargetIsa) -> Result<(), Legalize> { - self.dfg.encode(inst, isa).map( - |e| { self.encodings[inst] = e; }, - ) + self.dfg.encode(inst, isa).map(|e| self.encodings[inst] = e) } }