about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-02-21 15:06:09 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2019-02-21 15:06:09 +0100
commitf02490d960ecff8fc17272453f4eb8a6837b5a18 (patch)
treeb93c66bda558c49a65960a99a51dbe56a1cc907e /src/allocator.rs
parenta87aa4f583ea7b7d4e7fab94ced9fcb6c6058a93 (diff)
downloadrust-f02490d960ecff8fc17272453f4eb8a6837b5a18.tar.gz
rust-f02490d960ecff8fc17272453f4eb8a6837b5a18.zip
Rustfmt
Diffstat (limited to 'src/allocator.rs')
-rw-r--r--src/allocator.rs12
1 files changed, 4 insertions, 8 deletions
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<impl Backend + 'static>) -> 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() {