diff options
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) } } } } |
