diff options
| author | teresy <hi.teresy@gmail.com> | 2018-11-06 15:05:44 -0500 |
|---|---|---|
| committer | teresy <hi.teresy@gmail.com> | 2018-11-06 15:05:44 -0500 |
| commit | eca11b99a7d25e4e6573472a16537c1aacb5d5e1 (patch) | |
| tree | b4548341f7c93bad5db8f4f259a5b293e1f915fd /src/librustc_codegen_llvm/llvm/mod.rs | |
| parent | 1dceaddfbe163e2d916c904b98923342730ba970 (diff) | |
| download | rust-eca11b99a7d25e4e6573472a16537c1aacb5d5e1.tar.gz rust-eca11b99a7d25e4e6573472a16537c1aacb5d5e1.zip | |
refactor: use shorthand fields
Diffstat (limited to 'src/librustc_codegen_llvm/llvm/mod.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/llvm/mod.rs b/src/librustc_codegen_llvm/llvm/mod.rs index 4343c8c184e..fbd5192a63f 100644 --- a/src/librustc_codegen_llvm/llvm/mod.rs +++ b/src/librustc_codegen_llvm/llvm/mod.rs @@ -190,7 +190,7 @@ impl ObjectFile { pub fn new(llmb: &'static mut MemoryBuffer) -> Option<ObjectFile> { unsafe { let llof = LLVMCreateObjectFile(llmb)?; - Some(ObjectFile { llof: llof }) + Some(ObjectFile { llof }) } } } |
