about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/llvm/archive_ro.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-22 17:42:04 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-22 17:42:47 -0500
commita06baa56b95674fc626b3c3fd680d6a65357fe60 (patch)
treecd9d867c2ca3cff5c1d6b3bd73377c44649fb075 /src/librustc_codegen_llvm/llvm/archive_ro.rs
parent8eb7c58dbb7b32701af113bc58722d0d1fefb1eb (diff)
downloadrust-a06baa56b95674fc626b3c3fd680d6a65357fe60.tar.gz
rust-a06baa56b95674fc626b3c3fd680d6a65357fe60.zip
Format the world
Diffstat (limited to 'src/librustc_codegen_llvm/llvm/archive_ro.rs')
-rw-r--r--src/librustc_codegen_llvm/llvm/archive_ro.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/librustc_codegen_llvm/llvm/archive_ro.rs b/src/librustc_codegen_llvm/llvm/archive_ro.rs
index 0a8bb3250c5..ab9df416247 100644
--- a/src/librustc_codegen_llvm/llvm/archive_ro.rs
+++ b/src/librustc_codegen_llvm/llvm/archive_ro.rs
@@ -1,9 +1,9 @@
 //! A wrapper around LLVM's archive (.a) code
 
+use rustc_fs_util::path_to_c_string;
 use std::path::Path;
 use std::slice;
 use std::str;
-use rustc_fs_util::path_to_c_string;
 
 pub struct ArchiveRO {
     pub raw: &'static mut super::Archive,
@@ -37,11 +37,7 @@ impl ArchiveRO {
     }
 
     pub fn iter(&self) -> Iter<'_> {
-        unsafe {
-            Iter {
-                raw: super::LLVMRustArchiveIteratorNew(self.raw),
-            }
-        }
+        unsafe { Iter { raw: super::LLVMRustArchiveIteratorNew(self.raw) } }
     }
 }