Implemented clippy improvements

This commit is contained in:
Aaron Power
2018-07-24 14:17:21 +01:00
committed by Dan Gohman
parent d6d1e7253d
commit eed861c6e1
5 changed files with 15 additions and 14 deletions

View File

@@ -157,7 +157,7 @@ impl Backend for FaerieBackend {
artifact: &mut self.artifact,
name,
namespace,
libcall_names: &self.libcall_names,
libcall_names: &*self.libcall_names,
};
if let Some(ref mut trap_manifest) = self.trap_manifest {
@@ -347,7 +347,7 @@ struct FaerieRelocSink<'a> {
artifact: &'a mut faerie::Artifact,
name: &'a str,
namespace: &'a ModuleNamespace<'a, FaerieBackend>,
libcall_names: &'a Box<Fn(ir::LibCall) -> String>,
libcall_names: &'a Fn(ir::LibCall) -> String,
}
impl<'a> RelocSink for FaerieRelocSink<'a> {