From f02490d960ecff8fc17272453f4eb8a6837b5a18 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 21 Feb 2019 15:06:09 +0100 Subject: Rustfmt --- src/allocator.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/allocator.rs') diff --git a/src/allocator.rs b/src/allocator.rs index 1cc45a7d93b..cfc071612e7 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -15,14 +15,10 @@ use rustc_allocator::{AllocatorTy, ALLOCATOR_METHODS}; /// Returns whether an allocator shim was created pub fn codegen(sess: &Session, module: &mut Module) -> bool { - let any_dynamic_crate = sess - .dependency_formats - .borrow() - .iter() - .any(|(_, list)| { - use rustc::middle::dependency_format::Linkage; - list.iter().any(|&linkage| linkage == Linkage::Dynamic) - }); + let any_dynamic_crate = sess.dependency_formats.borrow().iter().any(|(_, list)| { + use rustc::middle::dependency_format::Linkage; + list.iter().any(|&linkage| linkage == Linkage::Dynamic) + }); if any_dynamic_crate { false } else if let Some(kind) = *sess.allocator_kind.get() { -- cgit 1.4.1-3-g733a5