diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-22 17:42:04 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-22 17:42:47 -0500 |
| commit | a06baa56b95674fc626b3c3fd680d6a65357fe60 (patch) | |
| tree | cd9d867c2ca3cff5c1d6b3bd73377c44649fb075 /src/librustc_codegen_llvm/llvm/archive_ro.rs | |
| parent | 8eb7c58dbb7b32701af113bc58722d0d1fefb1eb (diff) | |
| download | rust-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.rs | 8 |
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) } } } } |
